Merge pull request #2223 from marxin/CI-cache-restore-key
CI: use key-restore for cache GH action
This commit is contained in:
commit
885641bab1
1 changed files with 4 additions and 2 deletions
|
@ -41,7 +41,9 @@ jobs:
|
|||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: book/linkcheck/cache.json
|
||||
key: linkcheck--${{ env.MDBOOK_LINKCHECK2_VERSION }}
|
||||
key: linkcheck--${{ env.MDBOOK_LINKCHECK2_VERSION }}--${{ github.run_id }}
|
||||
restore-keys: |
|
||||
linkcheck--${{ env.MDBOOK_LINKCHECK2_VERSION }}--
|
||||
|
||||
- name: Install latest nightly Rust toolchain
|
||||
if: steps.mdbook-cache.outputs.cache-hit != 'true'
|
||||
|
@ -66,7 +68,7 @@ jobs:
|
|||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: book/linkcheck/cache.json
|
||||
key: linkcheck--${{ env.MDBOOK_LINKCHECK2_VERSION }}
|
||||
key: linkcheck--${{ env.MDBOOK_LINKCHECK2_VERSION }}--${{ github.run_id }}
|
||||
|
||||
- name: Deploy to gh-pages
|
||||
if: github.event_name == 'push'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue