diff --git a/dist/save/index.js b/dist/save/index.js index e8ff428..6bf1854 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -47298,8 +47298,7 @@ function run() { } 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(State.CachePrimaryKey); - const primaryKey = core.getInput(constants_1.Inputs.Key); + const primaryKey = core.getState(constants_1.State.CachePrimaryKey) || core.getInput(constants_1.Inputs.Key); if (!primaryKey) { utils.logWarning(`Error retrieving key from state.`); return;