mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-04-21 11:15:43 +00:00
chore: use getBooleanInput
This commit is contained in:
parent
dbb7ebcd4c
commit
dbe4fc23f1
4 changed files with 15 additions and 29 deletions
|
|
@ -65,7 +65,7 @@ async function buildCacheKeys(): Promise<string[]> {
|
|||
}
|
||||
|
||||
export async function restoreCache(): Promise<void> {
|
||||
if (core.getInput(`skip-cache`, { required: true }).trim() == "true") return
|
||||
if (core.getBooleanInput(`skip-cache`, { required: true })) return
|
||||
|
||||
if (!utils.isValidEvent()) {
|
||||
utils.logWarning(
|
||||
|
|
@ -107,8 +107,8 @@ export async function restoreCache(): Promise<void> {
|
|||
}
|
||||
|
||||
export async function saveCache(): Promise<void> {
|
||||
if (core.getInput(`skip-cache`, { required: true }).trim() == "true") return
|
||||
if (core.getInput(`skip-save-cache`, { required: true }).trim() == "true") return
|
||||
if (core.getBooleanInput(`skip-cache`, { required: true })) return
|
||||
if (core.getBooleanInput(`skip-save-cache`, { required: true })) return
|
||||
|
||||
// Validate inputs, this can cause task failure
|
||||
if (!utils.isValidEvent()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue