mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-04-22 03:35:44 +00:00
feat: automatic module directories (#1315)
This commit is contained in:
parent
f3ae99f5f5
commit
e7fa5ac41e
18 changed files with 541 additions and 275 deletions
16
src/cache.ts
16
src/cache.ts
|
|
@ -74,7 +74,10 @@ async function buildCacheKeys(): Promise<string[]> {
|
|||
}
|
||||
|
||||
export async function restoreCache(): Promise<void> {
|
||||
if (core.getBooleanInput(`skip-cache`, { required: true })) return
|
||||
if (core.getBooleanInput(`skip-cache`, { required: true })) {
|
||||
core.info(`Skipping cache restoration`)
|
||||
return
|
||||
}
|
||||
|
||||
if (!utils.isValidEvent()) {
|
||||
utils.logWarning(
|
||||
|
|
@ -116,8 +119,15 @@ export async function restoreCache(): Promise<void> {
|
|||
}
|
||||
|
||||
export async function saveCache(): Promise<void> {
|
||||
if (core.getBooleanInput(`skip-cache`, { required: true })) return
|
||||
if (core.getBooleanInput(`skip-save-cache`, { required: true })) return
|
||||
if (core.getBooleanInput(`skip-cache`, { required: true })) {
|
||||
core.info(`Skipping cache saving`)
|
||||
return
|
||||
}
|
||||
|
||||
if (core.getBooleanInput(`skip-save-cache`, { required: true })) {
|
||||
core.info(`Skipping cache saving`)
|
||||
return
|
||||
}
|
||||
|
||||
// Validate inputs, this can cause task failure
|
||||
if (!utils.isValidEvent()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue