File tree 2 files changed +18
-6
lines changed
2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,13 @@ jobs:
35
35
~/.cargo/bin
36
36
key : ${{ runner.os }}-${{ env.MDBOOK_VERSION }}--${{ env.MDBOOK_LINKCHECK2_VERSION }}--${{ env.MDBOOK_TOC_VERSION }}--${{ env.MDBOOK_MERMAID_VERSION }}
37
37
38
- - name : Cache linkcheck
39
- uses : actions/cache@v4
38
+ - name : Restore cached Linkcheck
39
+ if : github.event_name == 'schedule'
40
+ id : cache-linkcheck-restore
41
+ uses : actions/cache/restore@v4
40
42
with :
41
- path : |
42
- ~/book/linkcheck
43
- key : ${{ runner.os }}-${{ hashFiles('./book/linkcheck') }}
43
+ path : book/linkcheck/cache.json
44
+ key : linkcheck--${{ env.MDBOOK_LINKCHECK2_VERSION }}
44
45
45
46
- name : Install latest nightly Rust toolchain
46
47
if : steps.mdbook-cache.outputs.cache-hit != 'true'
58
59
59
60
- name : Check build
60
61
run : ENABLE_LINKCHECK=1 mdbook build
62
+ continue-on-error : true
63
+
64
+ - name : Save cached Linkcheck
65
+ id : cache-linkcheck-save
66
+ if : github.event_name == 'schedule'
67
+ uses : actions/cache/save@v4
68
+ with :
69
+ path : book/linkcheck/cache.json
70
+ key : linkcheck--${{ env.MDBOOK_LINKCHECK2_VERSION }}
61
71
62
72
- name : Deploy to gh-pages
63
73
if : github.event_name == 'push'
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