Skip to content

Commit 529debc

Browse files
committed
fix: update workflows to use JDK 21 and fix syntax errors
1 parent 0ad4e1f commit 529debc

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/checks.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Set up JDK 17
14+
- name: Set up JDK 21
1515
uses: actions/setup-java@v4
1616
with:
17-
java-version: "17"
17+
java-version: "21"
1818
distribution: "temurin"
1919

2020
- name: Validate Gradle wrapper

.github/workflows/pr_master.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,27 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
12-
- name: Set up JDK 17
12+
- name: Set up JDK 21
1313
uses: actions/setup-java@v3
1414
with:
15-
java-version: '17'
16-
distribution: 'temurin'
15+
java-version: "21"
16+
distribution: "temurin"
1717

1818
- name: Validate Gradle wrapper
1919
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
2020

2121
- name: Build with Gradle
2222
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
23-
2423
with:
2524
arguments: fatJar
2625

27-
- name : Retrieve Version
26+
- name: Retrieve Version
2827
run: |
29-
echo "::set-output name=VERSION_NAME::$(${{github.workspace}}/gradlew -q printVersionName)"
28+
echo "::set-output name=VERSION_NAME::$(./gradlew -q printVersionName)"
3029
id: yamp_version
3130

3231
- name: Get version
33-
run:
34-
echo "version_name=${{steps.yamp_version.outputs.VERSION_NAME}}" >> $GITHUB_ENV
32+
run: echo "version_name=${{steps.yamp_version.outputs.VERSION_NAME}}" >> $GITHUB_ENV
3533

3634
- run: echo ${{env.version_name}}
3735

0 commit comments

Comments
 (0)