diff --git a/.github/workflows/scripts/validate-redirects.js b/.github/workflows/scripts/validate-redirects.js index f5ddf03487b..2f378c4a768 100644 --- a/.github/workflows/scripts/validate-redirects.js +++ b/.github/workflows/scripts/validate-redirects.js @@ -33,11 +33,12 @@ module.exports = { let redirects = redirectsImport; const errors = []; + const validate = ajv.compile(schema); + const validateEntries = (redirects) => { - console.log('running') - const validate = ajv.compile(schema); const valid = validate(redirects); + console.log(valid) if (!valid) { const error = validate.errors[0];