File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 # Checkout must run before the caching key is computed using the `hashFiles` method
3434
3535 - name : Cache Gradle Modules
36+ if : ${{ matrix.language == 'java' }}
3637 uses : actions/cache@v5
3738 with :
3839 path : |
4142 ~/.gradle/caches/signatures/
4243 ~/.gradle/caches/keyrings/
4344 key : ${{ runner.os }}-gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
44- if : ${{ matrix.language == 'java' }}
4545
4646 - name : Disable checksum offloading
4747 # See: https://github.com/actions/virtual-environments/issues/1187#issuecomment-686735760
7878 ORG_GRADLE_PROJECT_signingKeyId : ${{ secrets.GPG_PRIVATE_KEY_ID }}
7979 ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.GPG_PASSPHRASE }}
8080
81+ - name : Check package credentials
82+ run : |
83+ test -n "$PACKAGES_USER" || { echo "PACKAGES_USER missing"; exit 1; }
84+ test -n "$PACKAGES_ACCESS_TOKEN" || { echo "PACKAGES_ACCESS_TOKEN missing"; exit 1; }
85+ env :
86+ PACKAGES_USER : ${{ secrets.PACKAGES_USER }}
87+ PACKAGES_ACCESS_TOKEN : ${{ secrets.PACKAGES_ACCESS_TOKEN }}
88+
8189 - name : Compile with Gradle without Build Scan
8290 if : ${{ matrix.language == 'java' && github.repository_owner != 'gradle' }}
8391 run : ./gradlew --init-script .github/workflows/codeql-analysis.init.gradle -S testClasses
You can’t perform that action at this time.
0 commit comments