-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from NieTiger/master
added option to exclude a list of prefixes.
- Loading branch information
Showing
3 changed files
with
19 additions
and
5 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 |
---|---|---|
|
@@ -12,6 +12,10 @@ Based on this work: https://github.com/healeycodes/Broken-Link-Crawler | |
|
||
**Required** The url of the website to check. | ||
|
||
### `exclude_url_prefix` | ||
|
||
**Optional** Comma separated list of url prefixes to exclude. Some sites do not respond properly to bots and you might want to exclude those known sites to prevent a failed build. | ||
|
||
### `verbose` | ||
|
||
**Optional** Turn verbose mode on/off (default false). | ||
|
@@ -31,6 +35,7 @@ Based on this work: https://github.com/healeycodes/Broken-Link-Crawler | |
uses: ScholliYT/[email protected] | ||
with: | ||
website_url: 'https://github.com/ScholliYT/Broken-Links-Crawler-Action' | ||
exclude_url_prefix: 'mailto:,https://www.linkedin.com,https://linkedin.com' | ||
verbose: 'true' | ||
max_retry_time: 30 | ||
max_retries: 5 | ||
|
@@ -41,5 +46,5 @@ with: | |
The easiest way to run this action locally is to use Docker. Just build a new image and pass the correct env. variables to it. | ||
``` | ||
docker build --tag broken-links-crawler-action:latest . | ||
docker run -e INPUT_WEBSITE_URL="https://github.com/ScholliYT/Broken-Links-Crawler-Action" -e INPUT_VERBOSE="true" -e INPUT_MAX_RETRY_TIME=30 -e INPUT_MAX_RETRIES=5 broken-links-crawler-action:latest | ||
docker run -e INPUT_WEBSITE_URL="https://github.com/ScholliYT/Broken-Links-Crawler-Action" -e INPUT_VERBOSE="true" -e INPUT_MAX_RETRY_TIME=30 -e INPUT_MAX_RETRIES=5 -e INPUT_EXCLUDE_URL_PREFIX="mailto:,https://www.linkedin.com,https://linkedin.com" broken-links-crawler-action:latest | ||
``` |
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
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