Check Link Rot #9
This file contains 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 Link Rot | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
link-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install lychee (Link Checker) | |
uses: lycheeverse/[email protected] | |
with: | |
args: --verbose --exclude-mail --timeout 20 . | |
- name: Upload broken links report (if any) | |
if: failure() | |
uses: actions/upload-artifact@main | |
with: | |
name: broken-links-report | |
path: lychee.out |