File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -35,20 +35,29 @@ 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
+ id : cache-linkcheck-restore
40
+ uses : actions/cache/restore@v4
40
41
with :
41
42
path : |
42
43
~/book/linkcheck
43
44
key : ${{ runner.os }}-${{ hashFiles('./book/linkcheck') }}
44
- save-always : true
45
45
46
46
- name : Install latest nightly Rust toolchain
47
47
if : steps.mdbook-cache.outputs.cache-hit != 'true'
48
48
run : |
49
49
rustup update nightly
50
50
rustup override set nightly
51
51
52
+ - name : Save cached Linkcheck
53
+ id : cache-linkcheck-save
54
+ if : always() && steps.cache-linkcheck-restore.outputs.cache-hit != 'true'
55
+ uses : actions/cache/save@v4
56
+ with :
57
+ path : |
58
+ ~/book/linkcheck
59
+ key : ${{ runner.os }}-${{ hashFiles('./book/linkcheck') }}
60
+
52
61
- name : Install Dependencies
53
62
if : steps.mdbook-cache.outputs.cache-hit != 'true'
54
63
run : |
You can’t perform that action at this time.
0 commit comments