Skip to content

Commit eeba3e1

Browse files
Update pr_master.yaml
1 parent 529debc commit eeba3e1

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

.github/workflows/pr_master.yaml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,35 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
12+
1213
- name: Set up JDK 21
13-
uses: actions/setup-java@v3
14+
uses: actions/setup-java@v4
1415
with:
1516
java-version: "21"
1617
distribution: "temurin"
1718

1819
- name: Validate Gradle wrapper
19-
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
20+
uses: gradle/actions/wrapper-validation@v4
2021

2122
- name: Build with Gradle
22-
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
23-
with:
24-
arguments: fatJar
23+
uses: gradle/actions/setup-gradle@v4
24+
25+
- name: Run fatJar
26+
run: ./gradlew fatJar
2527

2628
- name: Retrieve Version
27-
run: |
28-
echo "::set-output name=VERSION_NAME::$(./gradlew -q printVersionName)"
2929
id: yamp_version
30+
run: |
31+
VERSION=$(./gradlew -q printVersionName)
32+
echo "VERSION_NAME=$VERSION" >> "$GITHUB_OUTPUT"
3033
3134
- name: Get version
32-
run: echo "version_name=${{steps.yamp_version.outputs.VERSION_NAME}}" >> $GITHUB_ENV
35+
run: echo "version_name=${{ steps.yamp_version.outputs.VERSION_NAME }}" >> $GITHUB_ENV
3336

34-
- run: echo ${{env.version_name}}
37+
- run: echo ${{ env.version_name }}
3538

3639
- uses: actions/upload-artifact@v4
3740
with:
38-
name: yamp-${{env.version_name}}
41+
name: yamp-${{ env.version_name }}
3942
path: app/build/libs

0 commit comments

Comments
 (0)