From 5e8edc3cf54f035e90845f643d8556dfb11b71d8 Mon Sep 17 00:00:00 2001 From: Sergey Vilgelm Date: Sat, 26 Feb 2022 08:08:11 -0800 Subject: [PATCH] re-build dist --- dist/post_run/index.js | 4 ++++ dist/run/index.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/dist/post_run/index.js b/dist/post_run/index.js index 608d629..4a93538 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -65066,6 +65066,8 @@ function buildCacheKeys() { } function restoreCache() { return __awaiter(this, void 0, void 0, function* () { + if (core.getInput(`skip-cache`, { required: true }).trim() == "true") + return; 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.`); return; @@ -65104,6 +65106,8 @@ function restoreCache() { exports.restoreCache = restoreCache; function saveCache() { return __awaiter(this, void 0, void 0, function* () { + if (core.getInput(`skip-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.`); diff --git a/dist/run/index.js b/dist/run/index.js index f3f4e07..3994c54 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -65066,6 +65066,8 @@ function buildCacheKeys() { } function restoreCache() { return __awaiter(this, void 0, void 0, function* () { + if (core.getInput(`skip-cache`, { required: true }).trim() == "true") + return; 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.`); return; @@ -65104,6 +65106,8 @@ function restoreCache() { exports.restoreCache = restoreCache; function saveCache() { return __awaiter(this, void 0, void 0, function* () { + if (core.getInput(`skip-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.`);