Skip to content

Commit 8afdfca

Browse files
chenrui333cushon
authored andcommitted
chore: bump checkout/setup-java to v4 (use nodejs20 runtime)
Signed-off-by: Rui Chen <[email protected]>
1 parent 627c97e commit 8afdfca

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
with:
5252
access_token: ${{ github.token }}
5353
- name: 'Check out repository'
54-
uses: actions/checkout@v2
54+
uses: actions/checkout@v4
5555
- name: 'Set up JDK ${{ matrix.java }} from jdk.java.net'
5656
if: ${{ matrix.java == 'EA' }}
5757
uses: oracle-actions/setup-java@v1
@@ -61,7 +61,7 @@ jobs:
6161
cache: 'maven'
6262
- name: 'Set up JDK ${{ matrix.java }}'
6363
if: ${{ matrix.java != 'EA' }}
64-
uses: actions/setup-java@v2
64+
uses: actions/setup-java@v4
6565
with:
6666
java-version: ${{ matrix.java }}
6767
distribution: 'zulu'
@@ -80,9 +80,9 @@ jobs:
8080
runs-on: ubuntu-latest
8181
steps:
8282
- name: 'Check out repository'
83-
uses: actions/checkout@v2
83+
uses: actions/checkout@v4
8484
- name: 'Set up JDK 17'
85-
uses: actions/setup-java@v2
85+
uses: actions/setup-java@v4
8686
with:
8787
java-version: 17
8888
distribution: 'zulu'

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313
permissions:
1414
contents: write
15-
steps:
15+
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v2.4.0
17+
uses: actions/checkout@v4
1818

1919
- name: Set up JDK
20-
uses: actions/setup-java@v2.5.0
20+
uses: actions/setup-java@v4
2121
with:
2222
java-version: 21
2323
distribution: 'zulu'
@@ -27,7 +27,7 @@ jobs:
2727
server-password: CI_DEPLOY_PASSWORD
2828
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
2929
gpg-passphrase: MAVEN_GPG_PASSPHRASE
30-
30+
3131
- name: Bump Version Number
3232
run: |
3333
mvn --no-transfer-progress versions:set versions:commit -DnewVersion="${{ github.event.inputs.version }}"
@@ -40,7 +40,7 @@ jobs:
4040
git tag "v${{ github.event.inputs.version }}"
4141
echo "TARGET_COMMITISH=$(git rev-parse HEAD)" >> $GITHUB_ENV
4242
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/google/google-java-format.git
43-
43+
4444
- name: Deploy to Sonatype staging
4545
env:
4646
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
@@ -56,12 +56,12 @@ jobs:
5656
- name: Push tag
5757
run: |
5858
git push origin "v${{ github.event.inputs.version }}"
59-
59+
6060
- name: Add Jars to Release Entry
6161
uses: softprops/[email protected]
6262
with:
6363
draft: true
64-
name: ${{ github.event.input.version }}
64+
name: ${{ github.event.input.version }}
6565
tag_name: "v${{ github.event.inputs.version }}"
6666
target_commitish: ${{ env.TARGET_COMMITISH }}
6767
files: |

0 commit comments

Comments
 (0)