From cccc18b26a390acf1b9bf80a952ebb97895fbd7d Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Fri, 7 Oct 2022 14:35:38 +0200 Subject: [PATCH] Re-Build dist --- dist/restore/index.js | 1 + dist/save/index.js | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dist/restore/index.js b/dist/restore/index.js index a840efa..51c897e 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -4947,6 +4947,7 @@ var Inputs; Inputs["Path"] = "path"; Inputs["RestoreKeys"] = "restore-keys"; Inputs["UploadChunkSize"] = "upload-chunk-size"; + Inputs["ReEvalKey"] = "reeval-key"; })(Inputs = exports.Inputs || (exports.Inputs = {})); var Outputs; (function (Outputs) { diff --git a/dist/save/index.js b/dist/save/index.js index bd9f422..3449f9c 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -4947,6 +4947,7 @@ var Inputs; Inputs["Path"] = "path"; Inputs["RestoreKeys"] = "restore-keys"; Inputs["UploadChunkSize"] = "upload-chunk-size"; + Inputs["ReEvalKey"] = "reeval-key"; })(Inputs = exports.Inputs || (exports.Inputs = {})); var Outputs; (function (Outputs) { @@ -47297,8 +47298,9 @@ function run() { return; } const state = utils.getCacheState(); - // Inputs are re-evaluted before the post action, so we want the original key used for restore - const primaryKey = core.getState(constants_1.State.CachePrimaryKey); + const primaryKey = core.getBooleanInput(constants_1.Inputs.ReEvalKey) + ? core.getInput(constants_1.Inputs.Key, { required: true }) + : core.getState(constants_1.State.CachePrimaryKey); if (!primaryKey) { utils.logWarning(`Error retrieving key from state.`); return;