From d994badee38f2cc2bacf0701c1c760ab645c09e6 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Tue, 22 Nov 2022 19:44:03 +0100 Subject: 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/ --- .github/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to '.github') 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: env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | - echo "::set-output name=is_SONAR_TOKEN_set::${{ env.SONAR_TOKEN != '' }}" + echo "is_SONAR_TOKEN_set=${{ env.SONAR_TOKEN != '' }}" >> $GITHUB_OUTPUT - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: ${{ !steps.check-secret.outputs.is_SONAR_TOKEN_set && 1 || 0 }} # Shallow clones should be disabled for a better relevancy of SonarCloud analysis - name: Set up JDK 19 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: 19 distribution: temurin - name: Cache Gradle packages - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', 'gradle.properties', 'gradle/libs.versions.toml', 'gradle/wrapper/gradle-wrapper.properties') }} restore-keys: ${{ runner.os }}-gradle - name: Cache Sonar packages - uses: actions/cache@v2 + uses: actions/cache@v3 if: ${{ steps.check-secret.outputs.is_SONAR_TOKEN_set }} with: path: | @@ -42,14 +42,14 @@ jobs: key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - name: Cache node distribution - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | **/.node key: ${{ runner.os }}-node-${{ hashFiles('gradle.properties') }} restore-keys: ${{ runner.os }}-node - name: Cache yarn packages - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | **/.yarn/cache -- cgit v1.2.3-70-g09d2