diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js index c42c938..69f06b6 100644 --- a/dist/restore-only/index.js +++ b/dist/restore-only/index.js @@ -64911,7 +64911,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) { diff --git a/dist/restore/index.js b/dist/restore/index.js index 95f7849..b241cd6 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -64911,7 +64911,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) { diff --git a/dist/save-only/index.js b/dist/save-only/index.js index 1e1b222..1cbb51d 100644 --- a/dist/save-only/index.js +++ b/dist/save-only/index.js @@ -64911,7 +64911,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) { @@ -64996,8 +64997,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; diff --git a/dist/save/index.js b/dist/save/index.js index d288e0b..d4f3c90 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -64911,7 +64911,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) { @@ -64996,8 +64997,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;