From 0e4168908cb8fa4a4742f7b616736aacf9fa52b5 Mon Sep 17 00:00:00 2001 From: Hugo Di Francesco Date: Mon, 13 Jan 2020 15:52:44 +0000 Subject: [PATCH] only fail on 4xx, 5xx and other real errors --- scripts/data-validate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/data-validate.js b/scripts/data-validate.js index b823fc17..b1aa263d 100644 --- a/scripts/data-validate.js +++ b/scripts/data-validate.js @@ -58,7 +58,7 @@ function getStatusCode(url) { async function isWorkingUrl(url) { try { const statusCode = await getStatusCode(url); - if (statusCode < 200 || statusCode >= 300) { + if (statusCode < 200 || statusCode >= 400) { core.error(`Ping to "${url}" failed with status: ${statusCode}`); return false; }