Disable cache-read-only when cache-write-only is set

This commit is contained in:
Daz DeBoer 2022-06-04 11:28:12 -06:00
parent 0a36ca9fb8
commit b02f4f1968
No known key found for this signature in database
GPG key ID: DD6B9F0B06683D5D
2 changed files with 8 additions and 5 deletions

View file

@ -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 {