Skip to content

Commit b148f48

Browse files
committed
init cheaper action for PRs
1 parent 65e105e commit b148f48

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Check Links
2+
3+
on:
4+
push:
5+
branches:
6+
- link_checker # TODO: change to main to after testing
7+
workflow_dispatch:
8+
9+
jobs:
10+
linkChecker:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v5
14+
15+
- name: Link Checker
16+
id: lychee
17+
uses: lycheeverse/lychee-action@v2
18+
with:
19+
fail: false
20+
# args to check source files without building
21+
# './**/*.md' './**/*.html' './**/*.rst'
22+
args: >
23+
./_site/**/*.html
24+
--max-concurrency 1 --no-progress
25+
--accept '100..=103,200..=399, 429'
26+
--exclude https://doi.org/
27+
env:
28+
# avoid 429 errors (too many requests) on github.com api requests
29+
GITHUB_TOKEN: ${{secrets.TOKEN_GITHUB}}

0 commit comments

Comments
 (0)