Skip to content

Commit 1c50240

Browse files
authored
fix: use config arg for verify (#1168)
1 parent 0adbc47 commit 1c50240

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

dist/post_run/index.js

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/run/index.js

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/run.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
138138
}
139139

140140
if (core.getBooleanInput(`verify`, { required: true })) {
141-
const cmdVerify = `${binPath} config verify`
141+
let cmdVerify = `${binPath} config verify`
142+
if (userArgsMap.get("config")) {
143+
cmdVerify += ` --config=${userArgsMap.get("config")}`
144+
}
142145

143146
core.info(`Running [${cmdVerify}] in [${cmdArgs.cwd || process.cwd()}] ...`)
144147

0 commit comments

Comments
 (0)