Skip to content

Commit 1983b6f

Browse files
authored
Cache website results for 1 week (#277)
1 parent bcc8429 commit 1983b6f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,17 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14+
- name: Restore lychee cache
15+
uses: actions/cache@v4
16+
with:
17+
path: .lycheecache
18+
key: cache-lychee-${{ github.sha }}
19+
restore-keys: cache-lychee-
1420
- name: Link Checker
1521
id: lychee
1622
uses: lycheeverse/lychee-action@v2
1723
with:
18-
args: "--exclude https://www.uber.com README.md" # Uber returns 406s otherwise
24+
args: "--base . --cache --max-cache-age 1w . --exclude https://www.uber.com README.md" # Uber returns 406s otherwise
1925
- name: "Check for exactly 200 links"
2026
run: |
2127
grep "\- \[" README.md | grep -Eo "https?://[^][ ]+" | sed 's/)//' | sort > links-only.txt

0 commit comments

Comments
 (0)