From 1df5931b5aa8da31a4b6312737d1c45df6d11f3f Mon Sep 17 00:00:00 2001 From: Hugo Di Francesco Date: Mon, 13 Jan 2020 18:04:04 +0000 Subject: [PATCH] exit fine locally --- scripts/data-validate.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/data-validate.js b/scripts/data-validate.js index 613969ea..e9554ebb 100644 --- a/scripts/data-validate.js +++ b/scripts/data-validate.js @@ -82,4 +82,7 @@ async function isWorkingUrl(url) { `Action failed with ${failingUrls.length} URL fetch failures, see logs` ); } + if (process.env.CI !== 'true') { + process.exit(failingUrls.length > 0 ? 1 : 0) + } })();