mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-12 14:01:14 +00:00
fix: use config arg for verify (#1168)
This commit is contained in:
parent
0adbc47a59
commit
1c50240be2
3 changed files with 12 additions and 3 deletions
5
dist/post_run/index.js
generated
vendored
5
dist/post_run/index.js
generated
vendored
|
|
@ -94124,7 +94124,10 @@ async function runLint(binPath, patchPath) {
|
|||
cmdArgs.cwd = path.resolve(workingDirectory);
|
||||
}
|
||||
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()}] ...`);
|
||||
const res = await execShellCommand(cmdVerify, cmdArgs);
|
||||
printOutput(res);
|
||||
|
|
|
|||
5
dist/run/index.js
generated
vendored
5
dist/run/index.js
generated
vendored
|
|
@ -94124,7 +94124,10 @@ async function runLint(binPath, patchPath) {
|
|||
cmdArgs.cwd = path.resolve(workingDirectory);
|
||||
}
|
||||
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()}] ...`);
|
||||
const res = await execShellCommand(cmdVerify, cmdArgs);
|
||||
printOutput(res);
|
||||
|
|
|
|||
|
|
@ -138,7 +138,10 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
|
|||
}
|
||||
|
||||
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()}] ...`)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue