mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-23 03:45:31 +00:00
Add option to cache action to not save
This commit is contained in:
parent
6849a64899
commit
3f0646840e
4 changed files with 15 additions and 4 deletions
|
@ -5,7 +5,8 @@ export enum Inputs {
|
|||
UploadChunkSize = "upload-chunk-size", // Input for cache, save action
|
||||
EnableCrossOsArchive = "enableCrossOsArchive", // Input for cache, restore, save action
|
||||
FailOnCacheMiss = "fail-on-cache-miss", // Input for cache, restore action
|
||||
LookupOnly = "lookup-only" // Input for cache, restore action
|
||||
LookupOnly = "lookup-only", // Input for cache, restore action
|
||||
Save = "save" // Input for save action
|
||||
}
|
||||
|
||||
export enum Outputs {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue