mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-10-07 11:57:30 +00:00
feat: add option to not save cache (#851)
This commit is contained in:
1 parent
bf6479d5ec
commit
c683728f10
5 files changed
+15
No files matched your search
+2
@@ -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
@@ -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.`);
|
||||
|
||||
Reference in new issue
Block a user