Skip to content

Commit

Permalink
Merge pull request #183 from yallop/lychee-action
Browse files Browse the repository at this point in the history
Switch to lychee-action for checking links
  • Loading branch information
yallop authored Nov 9, 2023
2 parents 7456f20 + 725a0ff commit 20f3767
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/checklinks.yml
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 ."
2 changes: 2 additions & 0 deletions .lycheeignore
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/.*

0 comments on commit 20f3767

Please sign in to comment.