mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-23 09:13:56 +08:00
Trying with inputs
This commit is contained in:
parent
f17d1159c8
commit
1cbab03e0e
5 changed files with 7 additions and 7 deletions
4
dist/restore/index.js
vendored
4
dist/restore/index.js
vendored
|
@ -4948,7 +4948,7 @@ var Inputs;
|
|||
Inputs["RestoreKeys"] = "restore-keys";
|
||||
Inputs["UploadChunkSize"] = "upload-chunk-size";
|
||||
Inputs["StrictRestore"] = "strict-restore";
|
||||
Inputs["SaveCacheOnAnyFailure"] = "save-cache-on-any-failure";
|
||||
Inputs["SaveCacheOnAnyFailure"] = "saveCacheOnAnyFailure";
|
||||
})(Inputs = exports.Inputs || (exports.Inputs = {}));
|
||||
var Outputs;
|
||||
(function (Outputs) {
|
||||
|
@ -48991,7 +48991,7 @@ function run() {
|
|||
const saveCache = core.getInput(constants_1.Inputs.SaveCacheOnAnyFailure);
|
||||
if (saveCache === "yes") {
|
||||
core.saveState(constants_1.State.SaveCache, saveCache);
|
||||
core.info(`Input save-cache-on-any-failure is set to yes, the cache will be saved despite of any failure in the build.`);
|
||||
core.info(`Input saveCacheOnAnyFailure is set to yes, the cache will be saved despite of any failure in the build.`);
|
||||
core.info(core.getState(constants_1.State.SaveCache));
|
||||
core.info(core.getState(constants_1.State.CachePrimaryKey));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue