From 6ab5aa83ca5382dbbc92148c2d1478b12a8eb483 Mon Sep 17 00:00:00 2001 From: "Jack Pettit [SSW]" <57518417+JackDevAU@users.noreply.github.com> Date: Wed, 8 Nov 2023 15:41:44 +1000 Subject: [PATCH] test --- .github/workflows/validate-markdown.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/validate-markdown.yml b/.github/workflows/validate-markdown.yml index cb2d4b00451..f5d740698c0 100644 --- a/.github/workflows/validate-markdown.yml +++ b/.github/workflows/validate-markdown.yml @@ -40,13 +40,16 @@ jobs: # Set the formatted list as an output variable echo "::set-output name=list::$MARKDOWN_FILES" + - name: Install markdownlint-cli + run: npm install -g markdownlint-cli + - name: Lint Markdown files id: lint_markdown - uses: articulate/actions-markdownlint@v1 - with: - config: ./.markdownlint/config.json - # Pass the space-separated list of markdown files to the linter - files: ${{ steps.markdown_files.outputs.list }} + run: | + OUTPUT=$(markdownlint ${{ steps.markdown_files.outputs.list }} --config .markdownlint.json 2>&1) + echo "::set-output name=result::$OUTPUT" + echo "$OUTPUT" + if [[ "$OUTPUT" != "" ]]; then exit 1; fi # New Step 5: Write workflow job summary if linting fails - name: Add Job Summary