Skip to content

Commit 461c76a

Browse files
committed
CI: use restore keys
1 parent 544ff16 commit 461c76a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ jobs:
4040
uses: actions/cache/restore@v4
4141
with:
4242
path: book/linkcheck/cache.json
43-
key: linkcheck--${{ env.MDBOOK_LINKCHECK2_VERSION }}
43+
key: linkcheck--${{ env.MDBOOK_LINKCHECK2_VERSION }}--${{ github.run_id }}
44+
restore-keys: |
45+
linkcheck--${{ env.MDBOOK_LINKCHECK2_VERSION }}--
4446
4547
- name: Install latest nightly Rust toolchain
4648
if: steps.mdbook-cache.outputs.cache-hit != 'true'
@@ -65,7 +67,7 @@ jobs:
6567
uses: actions/cache/save@v4
6668
with:
6769
path: book/linkcheck/cache.json
68-
key: linkcheck--${{ env.MDBOOK_LINKCHECK2_VERSION }}
70+
key: linkcheck--${{ env.MDBOOK_LINKCHECK2_VERSION }}--${{ github.run_id }}
6971

7072
- name: Deploy to gh-pages
7173
if: github.event_name == 'push'

0 commit comments

Comments
 (0)