Check external links #2
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 external links | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "17 6 * * 1" | |
| permissions: | |
| contents: read | |
| jobs: | |
| links: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Collect external links | |
| run: node scripts/external-links.mjs > .external-links.txt | |
| - name: Check links | |
| id: lychee | |
| uses: lycheeverse/lychee-action@v2 | |
| with: | |
| args: >- | |
| --verbose | |
| --no-progress | |
| --accept 200,202,204,206,403,429 | |
| '.external-links.txt' | |
| fail: true |