Skip to content

Commit 6c3118e

Browse files
committed
Fix caching in PR preview workflow as well
1 parent 51ad1fd commit 6c3118e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/preview.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,23 @@ jobs:
2626
uses: quarto-dev/quarto-actions/setup@v2
2727

2828
- name: Restore cached _freeze folder
29-
id: cache-primes-restore
29+
id: cache-restore
3030
uses: actions/cache/restore@v4
3131
with:
3232
path: |
3333
_freeze/
34-
key: ${{ runner.os }}-primes-${{ github.run_id }}
35-
restore-keys: |
36-
${{ runner.os }}-primes
34+
key: ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}
3735

3836
- name: Render Quarto site
3937
run: quarto render
4038

4139
- name: Save _freeze folder
42-
id: cache-primes-save
40+
id: cache-save
4341
uses: actions/cache/save@v4
4442
with:
4543
path: |
4644
_freeze/
47-
key: ${{ runner.os }}-primes-${{ github.run_id }}
45+
key: ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}
4846

4947
- name: Deploy to GitHub Pages
5048
uses: JamesIves/github-pages-deploy-action@v4

0 commit comments

Comments
 (0)