diff options
author | 2022-11-22 19:44:03 +0100 | |
---|---|---|
committer | 2022-11-22 19:44:03 +0100 | |
commit | d994badee38f2cc2bacf0701c1c760ab645c09e6 (patch) | |
tree | a88266b75f66138541bd246b247668b0f2eb482a /.github/workflows | |
parent | chore: upgrade to Java 19 (diff) | |
download | refinery-d994badee38f2cc2bacf0701c1c760ab645c09e6.tar.gz refinery-d994badee38f2cc2bacf0701c1c760ab645c09e6.tar.zst refinery-d994badee38f2cc2bacf0701c1c760ab645c09e6.zip |
chore(build): update Github actions
Use output files as per
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62f74f13..ce42b9f1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
@@ -16,25 +16,25 @@ jobs: | |||
16 | env: | 16 | env: |
17 | SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | 17 | SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
18 | run: | | 18 | run: | |
19 | echo "::set-output name=is_SONAR_TOKEN_set::${{ env.SONAR_TOKEN != '' }}" | 19 | echo "is_SONAR_TOKEN_set=${{ env.SONAR_TOKEN != '' }}" >> $GITHUB_OUTPUT |
20 | - name: Checkout code | 20 | - name: Checkout code |
21 | uses: actions/checkout@v2 | 21 | uses: actions/checkout@v3 |
22 | with: | 22 | with: |
23 | fetch-depth: ${{ !steps.check-secret.outputs.is_SONAR_TOKEN_set && 1 || 0 }} # Shallow clones should be disabled for a better relevancy of SonarCloud analysis | 23 | fetch-depth: ${{ !steps.check-secret.outputs.is_SONAR_TOKEN_set && 1 || 0 }} # Shallow clones should be disabled for a better relevancy of SonarCloud analysis |
24 | - name: Set up JDK 19 | 24 | - name: Set up JDK 19 |
25 | uses: actions/setup-java@v2 | 25 | uses: actions/setup-java@v3 |
26 | with: | 26 | with: |
27 | java-version: 19 | 27 | java-version: 19 |
28 | distribution: temurin | 28 | distribution: temurin |
29 | - name: Cache Gradle packages | 29 | - name: Cache Gradle packages |
30 | uses: actions/cache@v2 | 30 | uses: actions/cache@v3 |
31 | with: | 31 | with: |
32 | path: | | 32 | path: | |
33 | ~/.gradle/caches | 33 | ~/.gradle/caches |
34 | key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', 'gradle.properties', 'gradle/libs.versions.toml', 'gradle/wrapper/gradle-wrapper.properties') }} | 34 | key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', 'gradle.properties', 'gradle/libs.versions.toml', 'gradle/wrapper/gradle-wrapper.properties') }} |
35 | restore-keys: ${{ runner.os }}-gradle | 35 | restore-keys: ${{ runner.os }}-gradle |
36 | - name: Cache Sonar packages | 36 | - name: Cache Sonar packages |
37 | uses: actions/cache@v2 | 37 | uses: actions/cache@v3 |
38 | if: ${{ steps.check-secret.outputs.is_SONAR_TOKEN_set }} | 38 | if: ${{ steps.check-secret.outputs.is_SONAR_TOKEN_set }} |
39 | with: | 39 | with: |
40 | path: | | 40 | path: | |
@@ -42,14 +42,14 @@ jobs: | |||
42 | key: ${{ runner.os }}-sonar | 42 | key: ${{ runner.os }}-sonar |
43 | restore-keys: ${{ runner.os }}-sonar | 43 | restore-keys: ${{ runner.os }}-sonar |
44 | - name: Cache node distribution | 44 | - name: Cache node distribution |
45 | uses: actions/cache@v2 | 45 | uses: actions/cache@v3 |
46 | with: | 46 | with: |
47 | path: | | 47 | path: | |
48 | **/.node | 48 | **/.node |
49 | key: ${{ runner.os }}-node-${{ hashFiles('gradle.properties') }} | 49 | key: ${{ runner.os }}-node-${{ hashFiles('gradle.properties') }} |
50 | restore-keys: ${{ runner.os }}-node | 50 | restore-keys: ${{ runner.os }}-node |
51 | - name: Cache yarn packages | 51 | - name: Cache yarn packages |
52 | uses: actions/cache@v2 | 52 | uses: actions/cache@v3 |
53 | with: | 53 | with: |
54 | path: | | 54 | path: | |
55 | **/.yarn/cache | 55 | **/.yarn/cache |