Skip to content

Commit f3f809b

Browse files
committed
Weekly, exclude doi, accept codes, token
1 parent dc0ba31 commit f3f809b

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/check_links.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: Links
22

33
on:
4+
push:
5+
branches:
6+
- link-checker
47
repository_dispatch:
58
workflow_dispatch:
69
schedule:
7-
- cron: "00 06 1 * *"
10+
- cron: "00 06 * * 0"
811

912
jobs:
1013
linkChecker:
@@ -17,9 +20,16 @@ jobs:
1720
- name: Link Checker
1821
id: lychee
1922
uses: lycheeverse/lychee-action@v2
23+
2024
with:
25+
# This token is included to avoid github.com requests rate limiting
26+
token: ${{ secrets.TOKEN_GITHUB }}
2127
fail: false
22-
args: "--verbose --max-concurrency 1 --no-progress './doc/sphinx/*.rst'"
28+
args: >
29+
./doc/sphinx/*.rst
30+
--verbose --max-concurrency 1 --no-progress
31+
--accept '100..=103,200..=399, 429'
32+
--exclude https://doi.org/
2333
2434
- name: Create Issue From File
2535
if: steps.lychee.outputs.exit_code != 0

0 commit comments

Comments
 (0)