Skip to content

Commit

Permalink
fix: use config arg for verify (#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludovic Fernandez authored and GitHub committed Feb 14, 2025
1 parent 0adbc47 commit 1c50240
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion dist/post_run/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion dist/run/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()}] ...`)

Expand Down

0 comments on commit 1c50240

Please sign in to comment.