-
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (23 loc) · 703 Bytes
/
links.yml
File metadata and controls
26 lines (23 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Check Links
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
# Run daily at midnight to catch rotting links
- cron: '0 0 * * *'
jobs:
link-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Link Checker
uses: lycheeverse/lychee-action@v1.9.0
with:
# Check all markdown files, but ignore localhost
args: --verbose --no-progress --exclude 'http://localhost' --exclude 'http://127.0.0.1' './docs/src/**/*.md' './README.md' './CONTRIBUTING.md'
# Fail if broken links found
fail: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}