Skip to content

Commit 0789c09

Browse files
committed
ci: add link check workflow
1 parent 3df9e69 commit 0789c09

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/links.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Links
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: "43 12 * * *"
8+
9+
jobs:
10+
check:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v5
15+
16+
- uses: actions/cache@v4
17+
with:
18+
path: .lycheecache
19+
key: cache-lychee-${{ github.sha }}
20+
restore-keys: cache-lychee-
21+
22+
- uses: lycheeverse/lychee-action@v2
23+
with:
24+
fail: true
25+
args: >
26+
--root-dir ${{ github.workspace }}
27+
--verbose
28+
--no-progress
29+
--cache
30+
--max-cache-age 2d
31+
--include-fragments
32+
--exclude 'api.hetzner.cloud'
33+
--exclude 'api.hetzner.com'
34+
--exclude 'codecov.io'
35+
--exclude 'github.com'
36+
--exclude '169.254.169.254'
37+
--exclude 'https://docs.hetzner.cloud/changelog#new-product'
38+
'**/*.md'
39+
'**/*.py'

0 commit comments

Comments
 (0)