Fix workflow syntax?

This commit is contained in:
Jason Penilla 2022-11-23 14:35:58 -07:00 committed by Jason
parent a222d0f488
commit 087fa0df2d

View file

@ -22,7 +22,7 @@ jobs:
- uses: gradle/gradle-build-action@v2 - uses: gradle/gradle-build-action@v2
with: with:
# allow master and *-dev branches to write caches (default is only master/main) # 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/')) }} cache-read-only: ${{ github.ref != 'refs/heads/master' && !(endsWith(github.ref, '-dev') && startsWith(github.ref, '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: