feat: add an option to verify with the JSONSchema (#1167)

This commit is contained in:
Ludovic Fernandez authored and GitHub committed 2025-02-13 23:14:24 +01:00
1 parent 32f961426b
commit f7463c56f6
9 files changed
+69 -24

No files matched your search

+9
View File
@@ -137,6 +137,15 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
cmdArgs.cwd = path.resolve(workingDirectory)
}
if (core.getBooleanInput(`verify`, { required: true })) {
const cmdVerify = `${binPath} config verify`
core.info(`Running [${cmdVerify}] in [${cmdArgs.cwd || process.cwd()}] ...`)
const res = await execShellCommand(cmdVerify, cmdArgs)
printOutput(res)
}
const cmd = `${binPath} run ${addedArgs.join(` `)} ${userArgs}`.trimEnd()
core.info(`Running [${cmd}] in [${cmdArgs.cwd || process.cwd()}] ...`)