File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 36
36
key : ${{ runner.os }}-${{ env.MDBOOK_VERSION }}--${{ env.MDBOOK_LINKCHECK2_VERSION }}--${{ env.MDBOOK_TOC_VERSION }}--${{ env.MDBOOK_MERMAID_VERSION }}
37
37
38
38
- name : Restore cached Linkcheck
39
+ if : github.event_name == 'schedule'
39
40
id : cache-linkcheck-restore
40
41
uses : actions/cache/restore@v4
41
42
with :
@@ -57,11 +58,11 @@ jobs:
57
58
cargo install mdbook-mermaid --version ${{ env.MDBOOK_MERMAID_VERSION }}
58
59
59
60
- name : Check build
60
- run : mdbook build || cat book/linkcheck/cache.json
61
+ run : mdbook build
61
62
62
63
- name : Save cached Linkcheck
63
64
id : cache-linkcheck-save
64
- if : always()
65
+ if : github.event_name == 'schedule'
65
66
uses : actions/cache/save@v4
66
67
with :
67
68
path : book/linkcheck/cache.json
Original file line number Diff line number Diff line change @@ -52,7 +52,9 @@ exclude = [
52
52
# 500 is returned for HEAD request
53
53
" code\\ .visualstudio\\ .com/docs/editor/tasks" ,
54
54
]
55
- cache-timeout = 86400
55
+ # The scheduled CI runs every day and so we need to reuse a part of the cache
56
+ # in order to face "Server returned 429 Too Many Requests" errors for github.com.
57
+ cache-timeout = 90000
56
58
warning-policy = " error"
57
59
58
60
[output .html .redirect ]
You can’t perform that action at this time.
0 commit comments