From 4fa7629554ccae5bcc1c6bd92d9c114a853d754d Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Thu, 8 Sep 2022 16:19:13 +0200 Subject: build(ci): try to fix Sonar token conditional --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index de55ffcf..80d6b4f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: - name: Checkout code uses: actions/checkout@v2 with: - fetch-depth: ${{ !steps.check-secret.is_SONAR_TOKEN_set && 1 || 0 }} # Shallow clones should be disabled for a better relevancy of SonarCloud analysis + 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 17 uses: actions/setup-java@v1 with: @@ -34,7 +34,7 @@ jobs: restore-keys: ${{ runner.os }}-gradle - name: Cache Sonar packages uses: actions/cache@v2 - if: ${{ steps.check-secret.is_SONAR_TOKEN_set }} + if: ${{ steps.check-secret.outputs.is_SONAR_TOKEN_set }} with: path: | ~/.sonar/cache @@ -55,11 +55,11 @@ jobs: key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: ${{ runner.os }}-yarn - name: Gradle build - if: ${{ !steps.check-secret.is_SONAR_TOKEN_set }} + if: ${{ !steps.check-secret.outputs.is_SONAR_TOKEN_set }} run: | ./gradlew build -Pci --info - name: Gradle build and Sonar analyze - if: ${{ steps.check-secret.is_SONAR_TOKEN_set }} + if: ${{ steps.check-secret.outputs.is_SONAR_TOKEN_set }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed by Sonar to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} -- cgit v1.2.3-70-g09d2