From 182dac270f0ac6ae3c777a40858de3df8f607065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= Date: Wed, 16 Aug 2023 13:25:19 +0200 Subject: [PATCH] Fix cache key for artifact caching (#687) When this action runs, `hashFiles('*/dist')` would always return the empty string, because it does not match any files. That means that the cache key would always be identical: `linux-`. This should be merged after #688 --- .github/workflows/test-and-demo.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-and-demo.yaml b/.github/workflows/test-and-demo.yaml index 2b996130..26c008cf 100644 --- a/.github/workflows/test-and-demo.yaml +++ b/.github/workflows/test-and-demo.yaml @@ -51,7 +51,7 @@ jobs: with: path: | */dist - key: ${{ runner.os }}-${{ hashFiles('*/dist') }} + key: ${{ runner.os }}-${{ github.sha }} - name: Install if: steps.cache.outputs.cache-hit != 'true' run: npm ci @@ -106,7 +106,7 @@ jobs: with: path: | */dist - key: ${{ runner.os }}-${{ hashFiles('*/dist') }} + key: ${{ runner.os }}-${{ github.sha }} - name: Build Storybooks run: npm run build:storybook - name: Deploy Storybook