Skip to content

Commit

Permalink
failes on first error, enrich diff
Browse files Browse the repository at this point in the history
  • Loading branch information
albertmink authored Dec 8, 2023
1 parent 73d5284 commit 7f75f80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate/aff.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ async function run() {
fs.writeFileSync(filename, result.get());


const command = `diff --strip-trailing-cr generated/${type.toLowerCase()}-v1.json ../file-formats/${type.toLowerCase()}/${type.toLowerCase()}-v1.json`;
const command = `diff --strip-trailing-cr -u 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 "+type)
core.setFailed("Provided and generated JSON Schema differ "+type)
core.info(command);
core.info(output.toString());
} else {
Expand Down

0 comments on commit 7f75f80

Please sign in to comment.