Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/upgrade-java.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

name: Upgrade Java
on:
workflow_dispatch:
inputs:
version:
description: |
The version of pulumi/pulumi-java to upgrade to, without the 'v' prefix
required: true
type: string
upgradeProviderVersion:
description: |
Version of upgrade-provider to use. This must be a valid git reference in the pulumi/upgrade-provider repo. Defaults to "main"

See https://go.dev/ref/mod#versions for valid versions. E.g. "v0.1.0", "main", "da25dec".
default: main
type: string

permissions:
contents: write
issues: write
pull-requests: write

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
upgrade_java:
name: upgrade-java
runs-on: ubuntu-latest
steps:

- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# Persist credentials so upgrade-provider can push a new branch.
persist-credentials: true

- name: Setup tools
uses: ./.github/actions/setup-tools
with:
tools: pulumictl, pulumicli, go

- name: Install upgrade-provider
run: go install github.com/pulumi/upgrade-provider@${{ inputs.upgradeProviderVersion || 'main' }}
shell: bash

- name: "Set up git identity"
run: |
git config --global user.name 'bot@pulumi.com'
git config --global user.email 'bot@pulumi.com'
shell: bash

- name: Upgrade Java
shell: bash
id: upgrade_provider
env:
V: ${{inputs.version}}
REPO: ${{github.repository}}
run: |
upgrade-provider "$REPO" --kind=java --java-version="$V"
Loading