return-2;//-2 refers as safe to ignore for the caller
return;
}
}
if(!utils.isValidEvent()){
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.`);
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.`);
return-2;
return;
}
}
// If restore has stored a primary key in state, reuse that
// If restore has stored a primary key in state, reuse that
// Else re-evaluate from inputs
// Else re-evaluate from inputs
@ -41134,14 +41134,14 @@ function saveImpl(stateProvider) {
core.getInput(constants_1.Inputs.Key);
core.getInput(constants_1.Inputs.Key);
if(!primaryKey){
if(!primaryKey){
utils.logWarning(`Key is not specified.`);
utils.logWarning(`Key is not specified.`);
return-2;
return;
}
}
// If matched restore key is same as primary key, then do not save cache
// If matched restore key is same as primary key, then do not save cache
return-2;//-2 refers as safe to ignore for the caller
return;
}
}
if(!utils.isValidEvent()){
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.`);
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.`);
return-2;
return;
}
}
// If restore has stored a primary key in state, reuse that
// If restore has stored a primary key in state, reuse that
// Else re-evaluate from inputs
// Else re-evaluate from inputs
@ -41078,14 +41078,14 @@ function saveImpl(stateProvider) {
core.getInput(constants_1.Inputs.Key);
core.getInput(constants_1.Inputs.Key);
if(!primaryKey){
if(!primaryKey){
utils.logWarning(`Key is not specified.`);
utils.logWarning(`Key is not specified.`);
return-2;
return;
}
}
// If matched restore key is same as primary key, then do not save cache
// If matched restore key is same as primary key, then do not save cache