From 3bf59502c12fa104369cc95a1393148da8bfd92d Mon Sep 17 00:00:00 2001 From: Austin Arbor Date: Tue, 13 Aug 2024 00:00:10 -0400 Subject: [PATCH] only cache on main and if using the wrapper --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3db30a2..8d8362d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,6 +51,7 @@ jobs: - uses: gradle/actions/setup-gradle@v4 with: gradle-version: ${{ matrix.gradle-version }} + cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/release' && matrix.gradle-version != 'wrapper' }} - name: Run Tests if: ${{ matrix.gradle-version == 'wrapper' }}