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