mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-16 07:28:27 +00:00
fix: use config arg
This commit is contained in:
parent
0adbc47a59
commit
0ab287baf5
1 changed files with 4 additions and 1 deletions
|
|
@ -138,7 +138,10 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (core.getBooleanInput(`verify`, { required: true })) {
|
if (core.getBooleanInput(`verify`, { required: true })) {
|
||||||
const cmdVerify = `${binPath} config verify`
|
let cmdVerify = `${binPath} config verify`
|
||||||
|
if (userArgsMap.get("config")) {
|
||||||
|
cmdVerify += ` --config=${userArgsMap.get("config")}`
|
||||||
|
}
|
||||||
|
|
||||||
core.info(`Running [${cmdVerify}] in [${cmdArgs.cwd || process.cwd()}] ...`)
|
core.info(`Running [${cmdVerify}] in [${cmdArgs.cwd || process.cwd()}] ...`)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue