-
Notifications
You must be signed in to change notification settings - Fork 81
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 #183 from yallop/lychee-action
Switch to lychee-action for checking links
- Loading branch information
Showing
2 changed files
with
17 additions
and
16 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 |
---|---|---|
@@ -1,25 +1,24 @@ | ||
name: checklinks | ||
name: Links (Fail Fast) | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
linkChecker: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Restore lychee cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: .lycheecache | ||
key: cache-lychee-${{ github.sha }} | ||
restore-keys: cache-lychee- | ||
|
||
- name: Run lychee | ||
uses: lycheeverse/[email protected] | ||
with: | ||
python-version: '3.8' | ||
- name: install URL-checking script | ||
run: | | ||
pip install requests markdown beautifulsoup4 | ||
wget https://raw.githubusercontent.com/yallop/check-markdown-urls/master/src/check_markdown_urls.py | ||
- name: check the URLs | ||
run: python check_markdown_urls.py README.md | ||
fail: true | ||
args: "--cache --max-redirects 10 --max-cache-age 1d ." |
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,2 @@ | ||
https://dl.acm.org/doi/pdf/.* | ||
https://www.cs.uoregon.edu/research/summerschool/.* |