-
Notifications
You must be signed in to change notification settings - Fork 46
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 #320 from cf-convention/exclude-known-domains-that…
…-timeout WIP: Exclude some domains from link checker
- Loading branch information
Showing
3 changed files
with
27 additions
and
3 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 |
---|---|---|
|
@@ -23,13 +23,34 @@ jobs: | |
with: | ||
output: ./lychee/out.md | ||
|
||
# See exclusions in .lycheeignore, remove lines and give it a | ||
# whirl if you're hunting broken links | ||
- name: Check links | ||
id: lychee | ||
uses: lycheeverse/lychee-action@master | ||
with: | ||
fail: true | ||
# We need to exclude the cf-conventions-1.2 and .3 build dirs | ||
# because they lead to an error of: | ||
# Error: Cannot read input content from file <relevant file> | ||
# Caused by: | ||
# stream did not contain valid UTF-8 | ||
# Note: --exclude-path only takes one input path, so we need | ||
# to set it twice. | ||
# Note also we define a .lycheeignore file to exclude some | ||
# specific links for checking, instead of using --exclude. | ||
args: > | ||
--no-progress './*.md' | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: Upload report | ||
if: ${{ always() }} | ||
if: env.exit_code != 0 | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: Link check report | ||
path: ./lychee/out.md | ||
|
||
- name: Create Issue From File | ||
uses: peter-evans/[email protected] | ||
with: | ||
|
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
cfeditor.ceda.ac.uk | ||
wps-web1.ceda.ac.uk | ||
http://kitt.llnl.gov/trac/wiki/SatelliteData |
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