mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-06-01 20:30:22 +02:00
Add option to skip uploading of cache
This commit is contained in:
parent
f4278025ab
commit
015084af58
5 changed files with 17 additions and 1 deletions
1
dist/restore/index.js
vendored
1
dist/restore/index.js
vendored
|
@ -4616,6 +4616,7 @@ var Inputs;
|
|||
Inputs["Path"] = "path";
|
||||
Inputs["RestoreKeys"] = "restore-keys";
|
||||
Inputs["UploadChunkSize"] = "upload-chunk-size";
|
||||
Inputs["SkipUpload"] = "skip-upload";
|
||||
})(Inputs = exports.Inputs || (exports.Inputs = {}));
|
||||
var Outputs;
|
||||
(function (Outputs) {
|
||||
|
|
4
dist/save/index.js
vendored
4
dist/save/index.js
vendored
|
@ -4616,6 +4616,7 @@ var Inputs;
|
|||
Inputs["Path"] = "path";
|
||||
Inputs["RestoreKeys"] = "restore-keys";
|
||||
Inputs["UploadChunkSize"] = "upload-chunk-size";
|
||||
Inputs["SkipUpload"] = "skip-upload";
|
||||
})(Inputs = exports.Inputs || (exports.Inputs = {}));
|
||||
var Outputs;
|
||||
(function (Outputs) {
|
||||
|
@ -46795,6 +46796,9 @@ function run() {
|
|||
core.info(`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`);
|
||||
return;
|
||||
}
|
||||
if (core.getBooleanInput(constants_1.Inputs.SkipUpload)) {
|
||||
core.info(`Skipping upload of cache since the skip-upload input was set.`);
|
||||
}
|
||||
const cachePaths = utils.getInputAsArray(constants_1.Inputs.Path, {
|
||||
required: true
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue