Skip to content

Commit 8238df4

Browse files
authored
Add restore key to _freeze cache key (#537)
1 parent 4bb01c8 commit 8238df4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/preview.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ jobs:
4141
with:
4242
path: |
4343
./_freeze/
44-
key: ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}
44+
key: |
45+
${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}-${{ hashFiles('**/index.qmd') }}
46+
restore-keys: |
47+
${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}
4548
4649
- name: Render Quarto site
4750
run: quarto render

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ jobs:
4343
with:
4444
path: |
4545
./_freeze/
46-
key: ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}
46+
key: |
47+
${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}-${{ hashFiles('**/index.qmd') }}
48+
restore-keys: |
49+
${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}
4750
4851
- name: Extract version from _quarto.yml
4952
id: extract_version

0 commit comments

Comments
 (0)