File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ # WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
2+
3+ name : Upgrade Java
4+ on :
5+ workflow_dispatch :
6+ inputs :
7+ version :
8+ description : |
9+ The version of pulumi/pulumi-java to upgrade to, without the 'v' prefix
10+ required : true
11+ type : string
12+ upgradeProviderVersion :
13+ description : |
14+ Version of upgrade-provider to use. This must be a valid git reference in the pulumi/upgrade-provider repo. Defaults to "main"
15+
16+ See https://go.dev/ref/mod#versions for valid versions. E.g. "v0.1.0", "main", "da25dec".
17+ default : main
18+ type : string
19+
20+ permissions :
21+ contents : write
22+ issues : write
23+ pull-requests : write
24+
25+ env :
26+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27+
28+ jobs :
29+ upgrade_java :
30+ name : upgrade-java
31+ runs-on : ubuntu-latest
32+ steps :
33+
34+ - name : Checkout Repo
35+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36+ with :
37+ # Persist credentials so upgrade-provider can push a new branch.
38+ persist-credentials : true
39+
40+ - name : Setup tools
41+ uses : ./.github/actions/setup-tools
42+ with :
43+ tools : pulumictl, pulumicli, go
44+
45+ - name : Install upgrade-provider
46+ run : go install github.com/pulumi/upgrade-provider@${{ inputs.upgradeProviderVersion || 'main' }}
47+ shell : bash
48+
49+ - name : " Set up git identity"
50+ run : |
51+ git config --global user.name '[email protected] ' 52+ git config --global user.email '[email protected] ' 53+ shell : bash
54+
55+ - name : Upgrade Java
56+ shell : bash
57+ id : upgrade_provider
58+ env :
59+ V : ${{inputs.version}}
60+ REPO : ${{github.repository}}
61+ run : |
62+ upgrade-provider "$REPO" --kind=java --java-version="$V"
You can’t perform that action at this time.
0 commit comments