diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index 199f2d3923c..c7af64fda9a 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -80,8 +80,8 @@ jobs: name: Run markdown checks id: markdown_check run: | - OUTPUT=$(npm run test:md || true) - echo "markdown_output=$OUTPUT" >> $GITHUB_OUTPUT + ERRORS=$(npm run test:md) + echo "markdown_output=$ERRORS" >> $GITHUB_OUTPUT # Post a comment using sticky-pull-request-comment - name: Comment on PR with markdown issues diff --git a/scripts/markdown/check-markdown.js b/scripts/markdown/check-markdown.js index 4d3e8e54243..ac4495cead8 100644 --- a/scripts/markdown/check-markdown.js +++ b/scripts/markdown/check-markdown.js @@ -125,7 +125,7 @@ function checkMarkdownFiles(folderPath, validateFunction, relativePath = '') { const errors = validateFunction(frontmatter); if (errors) { console.error(`Errors in file ${relativeFilePath}:`); - errors.forEach(error => console.error(` - ${error}`)); + errors.forEach(error => console.log(` - ${error}`)); } } });