This commit is contained in:
Sankalp Kotewar 2022-11-21 12:33:47 +00:00 committed by GitHub
parent 28ac5a0345
commit d7b864c258
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -25,7 +25,8 @@ async function run(): Promise<void> {
}
const state = utils.getCacheState();
core.info(core.getState(State.SaveCache));
core.info(core.getState(State.CachePrimaryKey));
// Inputs are re-evaluted before the post action, so we want the original key used for restore
const primaryKey =
core.getState(State.CachePrimaryKey) || core.getInput(Inputs.Key);