From 087fa0df2d2ecee06855b265267b9cf188a68636 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Wed, 23 Nov 2022 14:35:58 -0700 Subject: [PATCH] Fix workflow syntax? --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f407fbf8..5582b736 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: - 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/')) }} + 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 - uses: actions/cache@v3 with: