fix: use config arg for verify (#1168)

This commit is contained in:
Ludovic Fernandez
2025-02-14 13:56:21 +01:00
committed by GitHub
parent 0adbc47a59
commit 1c50240be2
3 changed files with 12 additions and 3 deletions

View File

@ -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()}] ...`)