Skip to content

Commit

Permalink
Fix cache setup
Browse files Browse the repository at this point in the history
Account for master -> main rename
  • Loading branch information
ljacomet committed Oct 2, 2023
1 parent 06666a3 commit d201241
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle-basic-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
# Only write to the cache for builds on the 'master' branch.
# Builds on other branches will only read existing entries from the cache.
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
cache-read-only: ${{ github.ref != 'refs/heads/main' }}

- name: Execute Gradle build
run: ./gradlew build
2 changes: 1 addition & 1 deletion .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
# Only write to the cache for builds on the 'master' branch.
# Builds on other branches will only read existing entries from the cache.
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
cache-read-only: ${{ github.ref != 'refs/heads/main' }}

- name: Execute Gradle build
run: ./gradlew build
Expand Down

0 comments on commit d201241

Please sign in to comment.