Updated input for save

pull/994/head
Sankalp Kotewar 3 years ago committed by GitHub
parent be3863f944
commit 70576fc9a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -47298,7 +47298,8 @@ 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(constants_1.State.CachePrimaryKey);
//const primaryKey = core.getState(State.CachePrimaryKey);
const primaryKey = core.getInput(constants_1.Inputs.Key);
if (!primaryKey) {
utils.logWarning(`Error retrieving key from state.`);
return;

@ -27,7 +27,8 @@ async function run(): Promise<void> {
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.getState(State.CachePrimaryKey);
const primaryKey = core.getInput(Inputs.Key);
if (!primaryKey) {
utils.logWarning(`Error retrieving key from state.`);
return;

Loading…
Cancel
Save