forked from pybamm-team/PyBaMM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move lychee args to correct position
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
Showing
1 changed file
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] |