mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-26 11:02:10 +00:00
Don't set cache-read-only for scheduled workflows
For scheduled workflows, we don't know the default branch. In this case cannot determine if the workflow is running on the default branch, and so cannot know when to enable `cache-read-only`. Fixes #383
This commit is contained in:
parent
1e61c9a322
commit
e4e8267f88
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ inputs:
|
||||||
When 'true', existing entries will be read from the cache but no entries will be written.
|
When 'true', existing entries will be read from the cache but no entries will be written.
|
||||||
By default this value is 'false' for workflows on the GitHub default branch and 'true' for workflows on other branches.
|
By default this value is 'false' for workflows on the GitHub default branch and 'true' for workflows on other branches.
|
||||||
required: false
|
required: false
|
||||||
default: ${{ github.ref_name != github.event.repository.default_branch }}
|
default: ${{ github.event.repository && github.ref_name != github.event.repository.default_branch }}
|
||||||
|
|
||||||
cache-write-only:
|
cache-write-only:
|
||||||
description: |
|
description: |
|
||||||
|
|
Loading…
Reference in a new issue