Skip to content

Commit 26a6472

Browse files
Update pr_master.yaml
1 parent cef3341 commit 26a6472

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/pr_master.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,40 @@ name: Java CI
22

33
on:
44
pull_request:
5-
branches: [ master ]
5+
branches: [master]
66

77
jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
- name: Set up JDK 17
13-
uses: actions/setup-java@v3
13+
uses: actions/setup-java@v4
1414
with:
15-
java-version: '17'
16-
distribution: 'temurin'
15+
java-version: "17"
16+
distribution: "temurin"
1717

1818
- name: Validate Gradle wrapper
19-
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
19+
uses: gradle/wrapper-validation-action@v1
2020

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

27-
- name : Retrieve Version
28-
run: |
29-
echo "::set-output name=VERSION_NAME::$(${{github.workspace}}/gradlew -q printVersionName)"
26+
- name: Retrieve Version
3027
id: yamp_version
28+
run: |
29+
VERSION_NAME=$(./gradlew -q printVersionName)
30+
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_OUTPUT
3131
3232
- name: Get version
33-
run:
34-
echo "version_name=${{steps.yamp_version.outputs.VERSION_NAME}}" >> $GITHUB_ENV
33+
run: |
34+
echo "version_name=${{ steps.yamp_version.outputs.VERSION_NAME }}" >> $GITHUB_ENV
3535
36-
- run: echo ${{env.version_name}}
36+
- run: echo ${{ env.version_name }}
3737

38-
- uses: actions/upload-artifact@v3
38+
- uses: actions/upload-artifact@v4
3939
with:
40-
name: yamp-${{env.version_name}}
40+
name: yamp-${{ env.version_name }}
4141
path: app/build/libs

0 commit comments

Comments
 (0)