1
0
Fork 0
mirror of https://github.com/actions/cache.git synced 2025-07-07 20:42:53 +00:00

Add option to cache action to not save

This commit is contained in:
Enrico Minack 2024-11-04 18:23:58 +01:00
parent 6849a64899
commit 3f0646840e
4 changed files with 15 additions and 4 deletions

View file

@ -1,3 +1,9 @@
import * as core from "@actions/core";
import { Inputs } from "./constants";
import { saveRun } from "./saveImpl";
saveRun(true);
const doSave = core.getInput(Inputs.Save);
if (doSave) {
saveRun(true);
}