From 3615d81b53482295714cfeb665ae872bc8f132b6 Mon Sep 17 00:00:00 2001 From: katiegoines Date: Mon, 10 Jun 2024 11:05:32 -0700 Subject: [PATCH] testing looping --- .github/workflows/scripts/validate-redirects.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/scripts/validate-redirects.js b/.github/workflows/scripts/validate-redirects.js index ac0c69d21e2..3f562117808 100644 --- a/.github/workflows/scripts/validate-redirects.js +++ b/.github/workflows/scripts/validate-redirects.js @@ -46,11 +46,11 @@ module.exports = { errors.push(errorMessage); validateEntries(redirects.splice(parseInt(error.instancePath.slice(1, -7)) + 1)); - } - } - - return errors; + } else if (valid && errors.length > 0) { + return 'errors'; + } + } } }