Check Markdown Links #1601
This file contains hidden or 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: | |
| push: | |
| branches: [master] | |
| paths: | |
| - '**.md' | |
| - '.github/workflows/check-markdown-links.yml' | |
| - '.lychee.toml' | |
| pull_request: | |
| paths: | |
| - '**.md' | |
| - '.github/workflows/check-markdown-links.yml' | |
| - '.lychee.toml' | |
| schedule: | |
| # Run daily at 3am UTC to catch stale cached links | |
| # See: https://lychee.cli.rs/github_action_recipes/caching/ | |
| - cron: '0 3 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| markdown-link-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Restore lychee cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: .lycheecache | |
| key: cache-lychee-${{ github.sha }} | |
| restore-keys: cache-lychee- | |
| - name: Check markdown links | |
| uses: lycheeverse/lychee-action@v2 | |
| with: | |
| args: --config .lychee.toml docs/ *.md react_on_rails_pro/docs/ react_on_rails_pro/*.md | |
| fail: true |