feat: add option to not save cache (#851)

This commit is contained in:
Navneeth Jayendran
2024-04-24 18:17:21 -07:00
committed by GitHub
parent bf6479d5ec
commit c683728f10
5 changed files with 15 additions and 0 deletions

2
dist/post_run/index.js generated vendored
View File

@ -88900,6 +88900,8 @@ exports.restoreCache = restoreCache;
async function saveCache() {
if (core.getInput(`skip-cache`, { required: true }).trim() == "true")
return;
if (core.getInput(`skip-save-cache`, { required: true }).trim() == "true")
return;
// Validate inputs, this can cause task failure
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.`);

2
dist/run/index.js generated vendored
View File

@ -88900,6 +88900,8 @@ exports.restoreCache = restoreCache;
async function saveCache() {
if (core.getInput(`skip-cache`, { required: true }).trim() == "true")
return;
if (core.getInput(`skip-save-cache`, { required: true }).trim() == "true")
return;
// Validate inputs, this can cause task failure
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.`);