Skip to content

Commit 181b977

Browse files
committed
Added lychee caching
1 parent 2dde87d commit 181b977

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/validate-links-on-push-pr.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ jobs:
1818
- name: Checkout repository
1919
uses: actions/checkout@v6.0.2
2020

21+
- name: Restore lychee cache
22+
id: restore-cache
23+
uses: actions/cache/restore@v5.0.4
24+
with:
25+
path: .lycheecache
26+
key: cache-lychee-${{ github.sha }}
27+
restore-keys: cache-lychee-
28+
2129
- name: Validate links
2230
uses: lycheeverse/lychee-action@v2.8.0
2331
with:
@@ -29,3 +37,10 @@ jobs:
2937
--exclude api\.star-history\.com --exclude ghostbrowser\.com
3038
env:
3139
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
40+
41+
- name: Save lychee cache
42+
uses: actions/cache/save@v5.0.4
43+
if: always()
44+
with:
45+
path: .lycheecache
46+
key: ${{ steps.restore-cache.outputs.cache-primary-key }}

0 commit comments

Comments
 (0)