Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDevAU committed Nov 8, 2023
1 parent 6ab5aa8 commit 7c2e891
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/validate-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c2e891

Please sign in to comment.