From 8238df49ba7a54a0e4cb8ab6339bdc1ccb9993c8 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Mon, 14 Oct 2024 18:20:23 +0100 Subject: [PATCH] Add restore key to _freeze cache key (#537) --- .github/workflows/preview.yml | 5 ++++- .github/workflows/publish.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index bc2e3cb5d..05c3fd655 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -41,7 +41,10 @@ jobs: with: path: | ./_freeze/ - key: ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }} + key: | + ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}-${{ hashFiles('**/index.qmd') }} + restore-keys: | + ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }} - name: Render Quarto site run: quarto render diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3e8ffded9..5120d3a71 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -43,7 +43,10 @@ jobs: with: path: | ./_freeze/ - key: ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }} + key: | + ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}-${{ hashFiles('**/index.qmd') }} + restore-keys: | + ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }} - name: Extract version from _quarto.yml id: extract_version