@ -41122,11 +41122,11 @@ function saveImpl(stateProvider) {
letcacheId;
try{
if(!utils.isCacheFeatureAvailable()){
return0;
return-2;//-2 refers as safe to ignore for the caller
}
if(!utils.isValidEvent()){
utils.logWarning(`Event Validation Error: The event type ${process.env[constants_1.Events.Key]} is not supported because it's not tied to a branch or tag ref.`);
return0;
return-2;
}
// If restore has stored a primary key in state, reuse that
// Else re-evaluate from inputs
@ -41134,14 +41134,14 @@ function saveImpl(stateProvider) {
core.getInput(constants_1.Inputs.Key);
if(!primaryKey){
utils.logWarning(`Key is not specified.`);
return0;
return-2;
}
// If matched restore key is same as primary key, then do not save cache
@ -41066,11 +41066,11 @@ function saveImpl(stateProvider) {
letcacheId;
try{
if(!utils.isCacheFeatureAvailable()){
return0;
return-2;//-2 refers as safe to ignore for the caller
}
if(!utils.isValidEvent()){
utils.logWarning(`Event Validation Error: The event type ${process.env[constants_1.Events.Key]} is not supported because it's not tied to a branch or tag ref.`);
return0;
return-2;
}
// If restore has stored a primary key in state, reuse that
// Else re-evaluate from inputs
@ -41078,14 +41078,14 @@ function saveImpl(stateProvider) {
core.getInput(constants_1.Inputs.Key);
if(!primaryKey){
utils.logWarning(`Key is not specified.`);
return0;
return-2;
}
// If matched restore key is same as primary key, then do not save cache