Skip to content

Commit

Permalink
to much errors shown
Browse files Browse the repository at this point in the history
  • Loading branch information
albertmink committed Dec 7, 2023
1 parent 6ed534e commit 761ca5a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions generate/aff.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ async function run() {
const command = `diff --strip-trailing-cr generated/${type.toLowerCase()}-v1.json ../file-formats/${type.toLowerCase()}/${type.toLowerCase()}-v1.json`;
const output = child_process.execSync(`${command} || true`);
if (output.toString().length > 0) {
core.error("Provided and generated JSOn Schema differ")
core.error("Provided and generated JSON Schema differ")
core.info(command);
core.info(output.toString());
error = true;
} else {
core.notice("Provided and generated JSON Schema match")
}
Expand All @@ -49,10 +48,6 @@ async function run() {

}

if (error === true) {
core.setFailed(`Generated JSON differs to what is in git.`);
}

}

run();

0 comments on commit 761ca5a

Please sign in to comment.