Adjust gradle-build-action caching config

This commit is contained in:
Jason Penilla 2022-11-23 14:31:17 -07:00 committed by Jason
parent b888d99bb7
commit a222d0f488

View file

@ -20,6 +20,9 @@ jobs:
distribution: 'temurin' distribution: 'temurin'
java-version: 17 java-version: 17
- uses: gradle/gradle-build-action@v2 - uses: gradle/gradle-build-action@v2
with:
# allow master and *-dev branches to write caches (default is only master/main)
cache-read-only: ${{ github.ref != 'refs/heads/master' && !(github.ref.endsWith('-dev') && github.ref.startsWith('refs/heads/')) }}
# gradle-build-action doesn't support caching files in the project dir # gradle-build-action doesn't support caching files in the project dir
- uses: actions/cache@v3 - uses: actions/cache@v3
with: with: