diff --git a/src/run.ts b/src/run.ts index 8881de8..a624c57 100644 --- a/src/run.ts +++ b/src/run.ts @@ -51,11 +51,6 @@ async function runLint(binPath: string, patchPath: string): Promise { printOutput(res) } - if (core.getBooleanInput(`verify`, { required: true })) { - const res = await execShellCommand(`${binPath} config verify`) - printOutput(res) - } - let userArgs = core.getInput(`args`) const addedArgs: string[] = [] @@ -142,6 +137,11 @@ async function runLint(binPath: string, patchPath: string): Promise { cmdArgs.cwd = path.resolve(workingDirectory) } + if (core.getBooleanInput(`verify`, { required: true })) { + const res = await execShellCommand(`${binPath} config verify`, cmdArgs) + printOutput(res) + } + const cmd = `${binPath} run ${addedArgs.join(` `)} ${userArgs}`.trimEnd() core.info(`Running [${cmd}] in [${cmdArgs.cwd || process.cwd()}] ...`)