-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (46 loc) · 1.33 KB
/
link-checker.yaml
File metadata and controls
49 lines (46 loc) · 1.33 KB
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
41
42
43
44
45
46
47
48
49
---
name: "Link Checker"
on:
push: null
repository_dispatch: null
workflow_dispatch: null
pull_request:
branches: [main]
permissions:
contents: read
jobs:
linkChecker:
name: "Run Link Checker"
runs-on: ubuntu-latest
steps:
- name: "Checkout code"
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: "Restore lychee cache"
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
id: restore-cache
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: "Link Checker"
id: lychee
uses: lycheeverse/lychee-action@a8c4c7cb88f0c7386610c35eb25108e448569cb0 #v2.7.0
with:
args: >-
'./**/*.md'
--verbose
--no-progress
--user-agent 'Mozilla/5.0 (X11; Linux x86_64) Chrome/134.0.0.0'
--retry-wait-time 60
--max-retries 8
--accept 100..=103,200..=299,429
--cookie-jar cookies.json
--exclude-all-private
--max-concurrency 4
--cache
--cache-exclude-status '429, 500..502'
--max-cache-age 1d
format: markdown
fail: true