From 88d49726bd6c24eff9b80e4f878ab43a654b54bd Mon Sep 17 00:00:00 2001 From: Vincent Clemson Date: Sun, 19 Jun 2022 00:50:29 -0400 Subject: [PATCH] build - adding reeval functionality --- dist/save/index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dist/save/index.js b/dist/save/index.js index c69ee3a..e3153a0 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -46783,8 +46783,16 @@ 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); + let primaryKey = ""; + const reeval = core.getBooleanInput(constants_1.Inputs.Reeval); + if (!reeval) { + // Inputs are reevaluted before the post action, so we want the original key used for restore + primaryKey = core.getState(constants_1.State.CachePrimaryKey); + } + else { + // choose to reevaluate primary key + primaryKey = core.getInput(constants_1.Inputs.Key, { required: true }); + } if (!primaryKey) { utils.logWarning(`Error retrieving key from state.`); return;