Skip to content

Commit df45f46

Browse files
authored
Update GitHub Actions workflows. (#5657)
This PR was automatically generated by the update-workflows-single-bridged-provider workflow in the pulumi/ci-mgmt repo, from commit 6345ed253562f8778002073a52eb22358f1d1b6a.
1 parent 4a5d90d commit df45f46

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/upgrade-java.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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"

0 commit comments

Comments
 (0)