diff --git a/.github/workflows/scripts/validate-redirects.js b/.github/workflows/scripts/validate-redirects.js index 6ee39a17bba..efdd53874c0 100644 --- a/.github/workflows/scripts/validate-redirects.js +++ b/.github/workflows/scripts/validate-redirects.js @@ -42,7 +42,7 @@ module.exports = { const invalidEntry = JSON.stringify(redirects[error.instancePath.slice(1, -7)]); const loc = error.schemaPath.slice(error.schemaPath.indexOf('properties') + 11, -8); - const errorMessage = '\n\n' + 'INVALID ENTRY: Please correct the error in the "' + loc +'" property of the following entry: \n' + invalidEntry + '\n\n' + 'ERROR MESSAGE: ' + error.message; + const errorMessage = 'INVALID ENTRY: Please correct the error in the "' + loc +'" property of the following entry: ' + invalidEntry + 'ERROR MESSAGE: ' + error.message; errors.push(errorMessage); validateEntries(redirects.splice(parseInt(error.instancePath.slice(1, -7)) + 1)); diff --git a/.github/workflows/validate_redirects.yml b/.github/workflows/validate_redirects.yml index bbb8d82a0f9..e37598b26c2 100644 --- a/.github/workflows/validate_redirects.yml +++ b/.github/workflows/validate_redirects.yml @@ -29,4 +29,4 @@ jobs: return await invalidRedirects(); - name: Fail if any invalid redirects have been found if: ${{ steps.redirects.outputs.result }} - run: exit 1 + run: exit 1 && echo ${{ steps.redirects.outputs.result }}