-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (36 loc) · 1.12 KB
/
check-links-quickly.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
name: Check Links Quickly
"on":
push:
branches:
- main
paths:
- .github/workflows/check-links-quickly.yaml
- docs/**.md
pull_request:
paths:
- .github/workflows/check-links-quickly.yaml
- docs/**.md
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Restore lychee cache
id: restore-cache
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: Run lychee
uses: lycheeverse/lychee-action@f613c4a64e50d792e0b31ec34bbcbba12263c6a6 # v2.3.0
with:
fail: true
args: "--base . --verbose --no-progress --cache --max-cache-age 3d 'docs/**/*.md'"
- name: Save lychee cache
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
if: always()
with:
path: .lycheecache
key: ${{ steps.restore-cache.outputs.cache-primary-key }}