From ec0089840382301d8ae2a27e40db6f44a52f8fad Mon Sep 17 00:00:00 2001 From: Sped0n Date: Sat, 4 Nov 2023 21:30:59 +0800 Subject: [PATCH] fix(build.yml): add restore-keys to cache action to allow fallback to previous cache versions if current cache is not available --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f84a7b7..8d2b977 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,8 @@ jobs: uses: actions/cache@v3 with: path: ./exampleSite/resources - key: ${{ runner.os }}-hugo- + key: ${{ runner.os }}-hugo-${{ hashFiles('./exampleSite') }} + restore-keys: ${{ runner.os }}-hugo- - name: Install dependencies run: pnpm install