-
Notifications
You must be signed in to change notification settings - Fork 42
40 lines (35 loc) · 946 Bytes
/
docs.yml
File metadata and controls
40 lines (35 loc) · 946 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: Documentation
on:
pull_request:
branches:
- main
paths:
- 'docs/**'
- '**.md'
- '**.html'
schedule:
# Weekly on Sundays at 2 AM UTC
- cron: '0 2 * * 0'
workflow_dispatch:
jobs:
link-check:
name: Link Checker
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install lychee
run: |
curl -sSL https://github.com/lycheeverse/lychee/releases/download/v0.15.1/lychee-v0.15.1-x86_64-unknown-linux-gnu.tar.gz | tar -xz
sudo mv lychee /usr/local/bin/
lychee --version
- name: Check links
run: |
lychee --config lychee.toml \
--no-progress \
'**/*.md' \
'**/*.html' \
--exclude-path '.git' \
--exclude-path 'node_modules' \
--exclude-path '.venv' \
--exclude-path 'docs/_site'