Check Markdown links #976
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Markdown links | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 12 * * *' | |
pull_request: | |
paths: | |
- '**/*.md' | |
- 'markdown_link_check_config.json' | |
permissions: | |
contents: read | |
jobs: | |
prepare-yarn-cache-ubuntu: | |
uses: ./.github/workflows/prepare-cache.yml | |
with: | |
os: ubuntu-latest | |
markdown-link-check: | |
needs: prepare-yarn-cache-ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: yarn | |
- name: install | |
run: yarn | |
- name: Run markdown-link-check on MD files | |
run: | |
find . -name "*.md" | grep -v node_modules | grep -v CHANGELOG.md | | |
xargs -n 1 yarn markdown-link-check -c markdown_link_check_config.json | |
-q |