mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-08-30 00:10:07 +00:00
Merge 4598e54d46
into 638ed79f9d
This commit is contained in:
commit
be9065e5df
8 changed files with 24 additions and 12 deletions
8
dist/save/index.js
vendored
8
dist/save/index.js
vendored
|
@ -66035,7 +66035,8 @@ var Inputs;
|
|||
Inputs["UploadChunkSize"] = "upload-chunk-size";
|
||||
Inputs["EnableCrossOsArchive"] = "enableCrossOsArchive";
|
||||
Inputs["FailOnCacheMiss"] = "fail-on-cache-miss";
|
||||
Inputs["LookupOnly"] = "lookup-only"; // Input for cache, restore action
|
||||
Inputs["LookupOnly"] = "lookup-only";
|
||||
Inputs["ReEvalKey"] = "reeval-key";
|
||||
})(Inputs = exports.Inputs || (exports.Inputs = {}));
|
||||
var Outputs;
|
||||
(function (Outputs) {
|
||||
|
@ -66120,8 +66121,9 @@ function saveImpl(stateProvider) {
|
|||
}
|
||||
// If restore has stored a primary key in state, reuse that
|
||||
// Else re-evaluate from inputs
|
||||
const primaryKey = stateProvider.getState(constants_1.State.CachePrimaryKey) ||
|
||||
core.getInput(constants_1.Inputs.Key);
|
||||
const primaryKey = core.getBooleanInput(constants_1.Inputs.ReEvalKey)
|
||||
? core.getInput(constants_1.Inputs.Key)
|
||||
: (stateProvider.getState(constants_1.State.CachePrimaryKey) || core.getInput(constants_1.Inputs.Key));
|
||||
if (!primaryKey) {
|
||||
utils.logWarning(`Key is not specified.`);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue