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:
3535 ~/.cargo/bin
3636 key : ${{ runner.os }}-${{ env.MDBOOK_VERSION }}--${{ env.MDBOOK_LINKCHECK2_VERSION }}--${{ env.MDBOOK_TOC_VERSION }}--${{ env.MDBOOK_MERMAID_VERSION }}
3737
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
4041 with :
4142 path : |
4243 ~/book/linkcheck
4344 key : ${{ runner.os }}-${{ hashFiles('./book/linkcheck') }}
44- save-always : true
4545
4646 - name : Install latest nightly Rust toolchain
4747 if : steps.mdbook-cache.outputs.cache-hit != 'true'
4848 run : |
4949 rustup update nightly
5050 rustup override set nightly
5151
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+
5261 - name : Install Dependencies
5362 if : steps.mdbook-cache.outputs.cache-hit != 'true'
5463 run : |
You can’t perform that action at this time.
0 commit comments