User: kyle wood Date: 28 Mar 25 00:38 Revision: 57f2e39da613d4ae6830ebb3bde78596897d1ddd Summary: Enable Gradle cache saving for release branches TeamCity URL: https://ci.mcdev.io/viewModification.html?tab=vcsModificationFiles&modId=9902&personal=false Index: .github/workflows/test.yml =================================================================== --- .github/workflows/test.yml (revision 1fcfb19002bda13b1fda6d741a7a54b9a47792de) +++ .github/workflows/test.yml (revision 57f2e39da613d4ae6830ebb3bde78596897d1ddd) @@ -23,7 +23,14 @@ with: distribution: 'temurin' java-version: 17 + - uses: actions-ecosystem/action-regex-match@v2 + id: branch-match + with: + text: ${{ github.ref }} + regex: '^refs/heads/\d{4}\.\d$' - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 + with: + cache-read-only: ${{ github.ref != 'refs/heads/dev' && steps.branch-match.outputs.match != '' }} - name: Build run: ./gradlew build --stacktrace