|
|
@ -27,8 +27,8 @@ async function run(): Promise<void> {
|
|
|
|
const state = utils.getCacheState();
|
|
|
|
const state = utils.getCacheState();
|
|
|
|
|
|
|
|
|
|
|
|
// Inputs are re-evaluted before the post action, so we want the original key used for restore
|
|
|
|
// 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 =
|
|
|
|
const primaryKey = core.getInput(Inputs.Key);
|
|
|
|
core.getState(State.CachePrimaryKey) || core.getInput(Inputs.Key);
|
|
|
|
if (!primaryKey) {
|
|
|
|
if (!primaryKey) {
|
|
|
|
utils.logWarning(`Error retrieving key from state.`);
|
|
|
|
utils.logWarning(`Error retrieving key from state.`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|