Skip to content

Commit 3b8d935

Browse files
committed
fix: use working directory
1 parent 320de79 commit 3b8d935

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/run.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
5151
printOutput(res)
5252
}
5353

54-
if (core.getBooleanInput(`verify`, { required: true })) {
55-
const res = await execShellCommand(`${binPath} config verify`)
56-
printOutput(res)
57-
}
58-
5954
let userArgs = core.getInput(`args`)
6055
const addedArgs: string[] = []
6156

@@ -142,6 +137,11 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
142137
cmdArgs.cwd = path.resolve(workingDirectory)
143138
}
144139

140+
if (core.getBooleanInput(`verify`, { required: true })) {
141+
const res = await execShellCommand(`${binPath} config verify`, cmdArgs)
142+
printOutput(res)
143+
}
144+
145145
const cmd = `${binPath} run ${addedArgs.join(` `)} ${userArgs}`.trimEnd()
146146

147147
core.info(`Running [${cmd}] in [${cmdArgs.cwd || process.cwd()}] ...`)

0 commit comments

Comments
 (0)