Skip to content

Commit 961a12f

Browse files
Merge pull request #1 from mre/patch-1
Move lychee args to correct position
2 parents af79897 + d751e7b commit 961a12f

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/lychee_url_checker.yml

+17-4
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,27 @@ jobs:
2222

2323
# check URLs with Lychee
2424
- uses: actions/checkout@v3
25-
- name: Lychee URL checker
25+
2626
# use stable version for now to avoid breaking changes
27+
- name: Lychee URL checker
2728
uses: lycheeverse/lychee-action@v1.6.1
2829
with:
30+
# arguments with file types to check
31+
args: >-
32+
--cache
33+
--no-progress
34+
--max-cache-age 2d
35+
--timeout 10
36+
--max-retries 5
37+
--skip-missing
38+
--accept 200,429
39+
--exclude-path ./CHANGELOG.md
40+
'./**/*.rst'
41+
'./**/*.md'
42+
'./**/*.py'
43+
'./**/*.ipynb'
2944
# fail the action on broken links
3045
fail: true
3146
env:
32-
# to be used in case rate limits are surpassed
47+
# to be used in case rate limits are surpassed
3348
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
34-
# arguments with file types to check
35-
args: --no-progress --cache --max-cache-age 2d './**/*.rst' './**/*.md' './**/*.py' './**/*.ipynb' --timeout 10 --max-retries 5 --skip-missing --exclude-path ./CHANGELOG.md --accept [200,429]

0 commit comments

Comments
 (0)