mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-09-14 11:42:22 +08:00
Explicitly allow cache-write for test invocations
The `gradle-build-action` test workflows need to write cache entries, even when run on non-default branches. This change add explicit configuration to set `cache-read-only: false` when cache writing is required.
This commit is contained in:
@@ -30,6 +30,8 @@ jobs:
|
||||
uses: ./.github/actions/download-dist
|
||||
- name: Setup Gradle
|
||||
uses: ./
|
||||
with:
|
||||
cache-read-only: false # For testing, allow writing cache entries on non-default branches
|
||||
- name: Build using Gradle wrapper
|
||||
working-directory: .github/workflow-samples/groovy-dsl
|
||||
run: ./gradlew test --info
|
||||
|
Reference in New Issue
Block a user