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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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()}] ...`)