From bfa25f941f5472d68c2352a7590e74048bc71608 Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Fri, 18 Oct 2024 16:30:16 +0000 Subject: [PATCH] update output --- .github/workflows/if-nodejs-pr-testing.yml | 4 ++-- scripts/markdown/check-markdown.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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}`)); } } });