From 00e5585835070fbfd8485067682dcc5fe5a1b4ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Paradzi=C5=84ski?= Date: Tue, 21 Nov 2023 03:50:07 +0100 Subject: [PATCH] CI cache improvements --- .github/workflows/haskell.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index 006196f..287a6d3 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -34,14 +34,14 @@ jobs: - name: Install dependencies # If we had an exact cache hit, the dependencies will be up to date. - if: steps.cache.outputs.cache-hit != 'true' + if: ${{ steps.cache.outputs.cache-hit != 'true' }} run: cabal build all --only-dependencies # Cache dependencies already here, so that we do not have to rebuild them should the subsequent steps fail. - name: Save cached dependencies uses: actions/cache/save@v3 # If we had an exact cache hit, trying to save the cache would error because of key clash. - if: steps.cache.outputs.cache-hit != 'true' + if: ${{ steps.cache.outputs.cache-hit != 'true' }} with: path: ${{ steps.setup.outputs.cabal-store }} key: ${{ steps.cache.outputs.cache-primary-key }}