link-check #13
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: link-check | |
| on: | |
| pull_request: | |
| paths: | |
| - "**/*.md" | |
| - ".github/workflows/link-check.yml" | |
| schedule: | |
| # Weekly check of all links — catches link rot in cited sources. | |
| - cron: "0 6 * * 1" | |
| permissions: | |
| contents: read | |
| issues: write | |
| jobs: | |
| links: | |
| 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 links | |
| uses: lycheeverse/lychee-action@v2 | |
| with: | |
| args: >- | |
| --cache | |
| --max-cache-age 1d | |
| --no-progress | |
| --accept 200,202,206,403,410,429 | |
| --timeout 60 | |
| './**/*.md' | |
| fail: true |