mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-06-07 16:56:12 +02:00
Disable cache-read-only when cache-write-only is set
This commit is contained in:
parent
0a36ca9fb8
commit
b02f4f1968
2 changed files with 8 additions and 5 deletions
|
@ -27,7 +27,7 @@ export function isCacheDisabled(): boolean {
|
|||
}
|
||||
|
||||
export function isCacheReadOnly(): boolean {
|
||||
return core.getBooleanInput(CACHE_READONLY_PARAMETER)
|
||||
return !isCacheWriteOnly() && core.getBooleanInput(CACHE_READONLY_PARAMETER)
|
||||
}
|
||||
|
||||
export function isCacheWriteOnly(): boolean {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue