-
Notifications
You must be signed in to change notification settings - Fork 22
40 lines (37 loc) · 943 Bytes
/
Copy pathlinks.yml
File metadata and controls
40 lines (37 loc) · 943 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Check Links
on:
push:
branches: [main]
paths:
- "**.md"
pull_request:
branches: [main]
paths:
- "**.md"
schedule:
- cron: "0 9 * * 1" # Every Monday at 9 AM UTC
workflow_dispatch:
jobs:
linkcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check links with lychee
uses: lycheeverse/lychee-action@v2
with:
args: >-
--verbose
--no-progress
--accept 200,204,301,302,403,429
--exclude-mail
--exclude "^https://x\\.com"
--exclude "^https://twitter\\.com"
--exclude "^https://discord\\.gg"
--exclude "^https://api\\.star-history\\.com"
--timeout 30
"README.md"
"CONTRIBUTING.md"
"templates/**/*.md"
fail: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}