Skip to content

Commit

Permalink
Move lychee args to correct position
Browse files Browse the repository at this point in the history
The args were inside the `env` block, causing all arguments to be ignored and the default arguments to be used instead since the very beginning.
  • Loading branch information
mre authored Mar 7, 2023
1 parent af79897 commit d751e7b
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/lychee_url_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,27 @@ jobs:

# check URLs with Lychee
- uses: actions/checkout@v3
- name: Lychee URL checker

# use stable version for now to avoid breaking changes
- name: Lychee URL checker
uses: lycheeverse/[email protected]
with:
# arguments with file types to check
args: >-
--cache
--no-progress
--max-cache-age 2d
--timeout 10
--max-retries 5
--skip-missing
--accept 200,429
--exclude-path ./CHANGELOG.md
'./**/*.rst'
'./**/*.md'
'./**/*.py'
'./**/*.ipynb'
# fail the action on broken links
fail: true
env:
# to be used in case rate limits are surpassed
# to be used in case rate limits are surpassed
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
# arguments with file types to check
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 comments on commit d751e7b

Please sign in to comment.