From 7f75f80e80b824771947b8aacb73aa31420d3398 Mon Sep 17 00:00:00 2001 From: Albert Mink Date: Fri, 8 Dec 2023 09:03:05 +0100 Subject: [PATCH] failes on first error, enrich diff --- generate/aff.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate/aff.mjs b/generate/aff.mjs index a5dec2ef3..09f107a0e 100644 --- a/generate/aff.mjs +++ b/generate/aff.mjs @@ -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 {