add support for read-only cache

This commit is contained in:
erik-krogh 2022-11-22 10:17:29 +01:00
commit a88d0603fe
No known key found for this signature in database
8 changed files with 79 additions and 3 deletions

View file

@ -13,6 +13,7 @@ interface CacheInput {
path: string;
key: string;
restoreKeys?: string[];
readOnly?: boolean;
}
export function setInputs(input: CacheInput): void {
@ -20,6 +21,7 @@ export function setInputs(input: CacheInput): void {
setInput(Inputs.Key, input.key);
input.restoreKeys &&
setInput(Inputs.RestoreKeys, input.restoreKeys.join("\n"));
input.readOnly && setInput(Inputs.ReadOnly, "true");
}
export function clearInputs(): void {