Link Checker #426
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 Checker | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
schedule: | |
# Run weekly on Monday at 9 AM UTC | |
- cron: '0 9 * * 1' | |
jobs: | |
link-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Link Checker | |
uses: lycheeverse/lychee-action@v2 | |
with: | |
# Fail action on broken links | |
fail: true | |
# Use the lychee.toml config file | |
args: --config lychee.toml --verbose '**/*.md' '.vitepress/config.ts' | |
# Optional: set a token for GitHub API access to avoid rate limiting | |
token: ${{ secrets.GITHUB_TOKEN }} |