mirror of https://github.com/actions/cache.git
Add option to cache action to not save
parent
6849a64899
commit
3f0646840e
@ -1,3 +1,9 @@
|
|||||||
|
import * as core from "@actions/core";
|
||||||
|
|
||||||
|
import { Inputs } from "./constants";
|
||||||
import { saveRun } from "./saveImpl";
|
import { saveRun } from "./saveImpl";
|
||||||
|
|
||||||
saveRun(true);
|
const doSave = core.getInput(Inputs.Save);
|
||||||
|
if (doSave) {
|
||||||
|
saveRun(true);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue