Skip to content

Commit 75d3c12

Browse files
authored
Update Gradle cache settings for branch names
1 parent 804c4d8 commit 75d3c12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Set up Gradle
3737
uses: gradle/actions/setup-gradle@v4
3838
with:
39-
cache-read-only: ${{ !((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && (github.ref_name == 'main' || startsWith(github.ref_name, 'v'))) }}
39+
cache-read-only: ${{ !((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && (github.ref_name == 'master' || github.ref_name == 'main' || startsWith(github.ref_name, 'v'))) }}
4040
- name: Cache Cognito ZIP
4141
uses: actions/cache@v4
4242
with:
@@ -48,7 +48,7 @@ jobs:
4848
timeout-minutes: 35
4949
env:
5050
PUBLISH_SCANS: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
51-
&& (github.ref_name == 'main' || startsWith(github.ref_name, 'v')) }}
51+
&& (github.ref_name == 'master' || github.ref_name == 'main' || startsWith(github.ref_name, 'v')) }}
5252
run: ./gradlew build --scan --no-daemon --console=plain
5353
- name: Upload test reports
5454
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)