1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-04-08 23:27:48 +02:00

Updated dist for save

This commit is contained in:
Sankalp Kotewar 2022-11-15 04:41:27 +00:00 committed by GitHub
parent 919a100745
commit 286fe1ac83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

3
dist/save/index.js vendored
View file

@ -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;