reusable-markdown-link-check.yml 723 B

1234567891011121314151617181920212223242526
  1. name: Reusable - Markdown link check
  2. on:
  3. workflow_call:
  4. permissions:
  5. contents: read
  6. jobs:
  7. markdown-link-check:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
  11. - name: Install markdown-link-check
  12. # https://github.com/tcort/markdown-link-check/issues/297
  13. run: npm install -g markdown-link-check@3.11.2
  14. - name: Run markdown-link-check
  15. run: |
  16. find . -type f \
  17. -name '*.md' \
  18. -not -path './CHANGELOG.md' \
  19. -not -path './licenses/*' \
  20. -not -path '*/build/*' \
  21. | xargs .github/scripts/markdown-link-check-with-retry.sh