Skip to content

Commit 91a3476

Browse files
committed
feat: skip config path if verify false
1 parent f6fe8a3 commit 91a3476

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/run.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,13 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
164164
}
165165

166166
async function runVerify(binPath: string, userArgsMap: Map<string, string>, cmdArgs: ExecOptions): Promise<void> {
167-
const cfgPath = await getConfigPath(binPath, userArgsMap, cmdArgs)
168167
const verify = core.getBooleanInput(`verify`, { required: true })
168+
if (!verify) {
169+
return
170+
}
169171

170-
if (!verify || !cfgPath) {
172+
const cfgPath = await getConfigPath(binPath, userArgsMap, cmdArgs)
173+
if (!cfgPath) {
171174
return
172175
}
173176

0 commit comments

Comments
 (0)