Adjust gradle-build-action caching config
This commit is contained in:
parent
b888d99bb7
commit
a222d0f488
1 changed files with 3 additions and 0 deletions
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue