Skip to content

Commit

Permalink
Switch to lychee-action for checking links
Browse files Browse the repository at this point in the history
  • Loading branch information
yallop committed Nov 9, 2023
1 parent 7456f20 commit 725a0ff
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 725a0ff

Please sign in to comment.