reusable-markdown-link-check.yml 647 B

12345678910111213141516171819202122
  1. name: Reusable - Markdown link check
  2. on:
  3. workflow_call:
  4. jobs:
  5. markdown-link-check:
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v3
  9. - name: Install markdown-link-check
  10. run: npm install -g markdown-link-check
  11. - name: Run markdown-link-check
  12. run: |
  13. # --quiet displays errors only, making them easier to find in the log
  14. find . -type f \
  15. -name '*.md' \
  16. -not -path './CHANGELOG.md' \
  17. -not -path './licenses/*' \
  18. | xargs markdown-link-check --quiet --config .github/scripts/markdown-link-check-config.json