fix: use working directory

This commit is contained in:
Fernandez Ludovic 2025-02-13 22:41:29 +01:00
parent 320de79845
commit 3b8d935c85

View file

@ -51,11 +51,6 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
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<void> {
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()}] ...`)