Skip to content

Commit

Permalink
Use a cache for lychee (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Apr 14, 2024
1 parent 0e6e0ca commit e817c56
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- uses: lycheeverse/lychee-action@v1.9.3
with:
fail: true
args: >-
-v -n "*.md" "**/*.md"
--exclude "http://localhost*"
- name: fail for link errors
run: exit ${{ steps.lychee.outputs.exit_code }}
--max-concurrency 5 --cache --max-cache-age 1d

0 comments on commit e817c56

Please sign in to comment.