-
Notifications
You must be signed in to change notification settings - Fork 51
37 lines (34 loc) · 1.01 KB
/
link-check.yml
File metadata and controls
37 lines (34 loc) · 1.01 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
name: Markdown Link Validator
on:
pull_request:
push:
branches: [ main, master ]
jobs:
linkChecker:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Check links with lychee
# See https://github.com/lycheeverse/lychee-action
uses: lycheeverse/lychee-action@v2
with:
# Check all markdown and reStructuredText files
args: >-
--verbose
--no-progress
--max-concurrency 12
--max-retries 3
--retry-wait-time 4
--accept 200,206,403,429
--exclude-path "docs/get_started/legacy_licenses/gpl-3.0.rst"
"**/*.md" "**/*.rst"
# Fail the build on any broken link
fail: true
env:
# Exclude localhost and badges
LY_CHEE_EXCLUDE: "http://localhost,https://localhost,https://127.0.0.1,https://img.shields.io"