Site Link Check #120
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
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 * * 0" | |
| name: Site Link Check | |
| permissions: | |
| contents: read | |
| issues: write | |
| jobs: | |
| linkChecker: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - name: ✅ Checkout Repo | |
| uses: actions/checkout@v7 | |
| - name: 🔄 Restore lychee cache | |
| uses: actions/cache@v6 | |
| with: | |
| path: .lycheecache | |
| key: cache-lychee-${{ github.sha }} | |
| restore-keys: cache-lychee- | |
| - name: 🔗 Link Checker | |
| id: lychee | |
| uses: lycheeverse/lychee-action@v2.9.0 | |
| with: | |
| args: --cache --max-cache-age 1d --verbose --root-dir . --accept 200,401,403,429,503,520 './**/*.md' './**/*.html' | |
| env: | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| - name: 🎟️ Create Issue From File | |
| if: env.lychee_exit_code != 0 | |
| uses: peter-evans/create-issue-from-file@v6 | |
| with: | |
| title: Link Checker Report | |
| content-filepath: ./lychee/out.md | |
| labels: report, automated issue |