Skip to content

Commit 56f0902

Browse files
committed
Cache Gradle also on develop branch for GH action
1 parent 5b061de commit 56f0902

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/gradle-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515

1616
- name: Setup Gradle
1717
uses: gradle/gradle-build-action@v2
18+
with:
19+
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
1820

1921
- name: Execute Gradle build
2022
run: ./gradlew check --scan -stacktrace

0 commit comments

Comments
 (0)