Skip to content

Commit 5d7acdf

Browse files
committed
Cache the output of HTMLProofer to avoid hitting rate limits
1 parent a0d4083 commit 5d7acdf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ jobs:
2626
bundle exec jekyll build 2> error.log
2727
cat >&2 error.log
2828
( ! grep -qie Error -e Warn error.log )
29+
- name: Cache HTMLProofer
30+
id: cache-htmlproofer
31+
uses: actions/cache@v2
32+
with:
33+
path: tmp/.htmlproofer
34+
key: ${{ runner.os }}-htmlproofer
2935
- name: HTMLProofer
3036
run: |
3137
# Check all links
@@ -35,4 +41,6 @@ jobs:
3541
--allow-hash-href=true\
3642
--enforce-https=false\
3743
--ignore-missing-alt=true\
38-
--swap-urls "https\:\/\/scala\.epfl\.ch:"
44+
--swap-urls "https\:\/\/scala\.epfl\.ch:"\
45+
--cache '{ "timeframe": { "external": "30d" } }'
46+
continue-on-error: true

0 commit comments

Comments
 (0)