Skip to content

Commit 3e4fe4f

Browse files
committed
extra action for PR
1 parent b148f48 commit 3e4fe4f

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed
Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
name: Check Links
1+
name: Check Links in PRs
22

33
on:
4-
push:
5-
branches:
6-
- link_checker # TODO: change to main to after testing
4+
pull_request:
5+
paths: ['**.md']
76
workflow_dispatch:
87

98
jobs:
@@ -16,14 +15,11 @@ jobs:
1615
id: lychee
1716
uses: lycheeverse/lychee-action@v2
1817
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/
18+
fail: true
19+
args: |
20+
'./**/*.md'
21+
--max-concurrency 1
22+
--no-progress
2723
env:
2824
# avoid 429 errors (too many requests) on github.com api requests
2925
GITHUB_TOKEN: ${{secrets.TOKEN_GITHUB}}

0 commit comments

Comments
 (0)