From 7c2e8916cd57f411228e413894fd4609e24aa50a Mon Sep 17 00:00:00 2001 From: "Jack Pettit [SSW]" <57518417+JackDevAU@users.noreply.github.com> Date: Wed, 8 Nov 2023 15:44:19 +1000 Subject: [PATCH] test --- .github/workflows/validate-markdown.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-markdown.yml b/.github/workflows/validate-markdown.yml index f5d740698c0..67da7ee8660 100644 --- a/.github/workflows/validate-markdown.yml +++ b/.github/workflows/validate-markdown.yml @@ -46,10 +46,14 @@ jobs: - name: Lint Markdown files id: lint_markdown run: | - OUTPUT=$(markdownlint ${{ steps.markdown_files.outputs.list }} --config .markdownlint.json 2>&1) + OUTPUT=$(markdownlint ${{ steps.markdown_files.outputs.list }} --config .markdownlint/config.json 2>&1) || true echo "::set-output name=result::$OUTPUT" echo "$OUTPUT" - if [[ "$OUTPUT" != "" ]]; then exit 1; fi + if [[ "$OUTPUT" != "" ]]; then + echo "Linting errors found" + echo "$OUTPUT" >> $GITHUB_STEP_SUMMARY + exit 1 + fi # New Step 5: Write workflow job summary if linting fails - name: Add Job Summary