diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 46da3b1a..d9d8929f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,7 @@ jobs: distribution: temurin cache: gradle - name: Cache SonarCloud packages - if: matrix.java-version != 11 + if: matrix.java-version >= 17 uses: actions/cache@v3 with: path: ~/.sonar/cache @@ -41,7 +41,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - if: matrix.java-version == 11 && env.SONAR_TOKEN != '' + if: matrix.java-version >= 17 && env.SONAR_TOKEN != '' run: ./gradlew --no-daemon --info --stacktrace sonarqube -Dsonar.verbose=true -Dsonar.login=$SONAR_TOKEN - uses: actions/upload-artifact@v3 if: failure()