Skip to content

Commit cb55e14

Browse files
committed
ENH: Add link checker GHA workflow file
Add link checker GHA workflow file: use the `lychee` action to check for broken links in Markdown, HTML, reStructuredText, and other files. Repository: https://github.com/lycheeverse/lychee-action Documentation: https://lychee.cli.rs/introduction/
1 parent 2d0f612 commit cb55e14

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/linkcheck.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check links
2+
3+
on: [push, pull_request]
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
linkcheck:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Restore lychee cache
16+
uses: actions/cache@v4
17+
with:
18+
path: .lycheecache
19+
key: cache-lychee-${{ github.sha }}
20+
restore-keys: cache-lychee-
21+
- name: Run lychee
22+
uses: lycheeverse/lychee-action@v2
23+
with:
24+
args: "--base . --cache --max-cache-age 1d ."
25+
fail: true

0 commit comments

Comments
 (0)