From ffb7e24fb6162d095d5da95ce74c09b00838d795 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Tue, 6 Feb 2024 22:09:49 +0100 Subject: [PATCH] ci: Remove useless cache- prefix for cache names This just makes the name longer than needed. --- .github/actions/setup-nix/action.yaml | 4 ++-- .github/workflows/ci.yaml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/actions/setup-nix/action.yaml b/.github/actions/setup-nix/action.yaml index 132da93d45..bb32753b58 100644 --- a/.github/actions/setup-nix/action.yaml +++ b/.github/actions/setup-nix/action.yaml @@ -20,9 +20,9 @@ runs: if: ${{ inputs.cache }} uses: nix-community/cache-nix-action@v4.0.3 with: - key: cache-nix-${{ runner.os }}-${{ inputs.cache }}-${{ hashFiles('**/*.nix', 'nix/**/*.patch') }} + key: nix-${{ runner.os }}-${{ inputs.cache }}-${{ hashFiles('**/*.nix', 'nix/**/*.patch') }} restore-keys: | - cache-nix-${{ runner.os }}-${{ inputs.cache }}- + nix-${{ runner.os }}-${{ inputs.cache }}- - uses: cachix/cachix-action@v14 with: name: postgrest diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index abcbaaa4b9..ee068e877c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -239,9 +239,9 @@ jobs: id: restore-cache with: path: ${{ matrix.cache }} - key: cache-stack-${{ runner.os }}-${{ hashFiles('stack.yaml.lock') }} + key: stack-${{ runner.os }}-${{ hashFiles('stack.yaml.lock') }} restore-keys: | - cache-stack-${{ runner.os }}- + stack-${{ runner.os }}- - name: Install dependencies if: ${{ matrix.deps }} run: ${{ matrix.deps }} @@ -311,9 +311,9 @@ jobs: ~/.cabal/packages ~/.cabal/store dist-newstyle - key: cache-cabal-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('postgrest.cabal', 'cabal.project', 'cabal.project.freeze') }} + key: cabal-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('postgrest.cabal', 'cabal.project', 'cabal.project.freeze') }} restore-keys: | - cache-cabal-${{ runner.os }}-${{ matrix.ghc }}- + cabal-${{ runner.os }}-${{ matrix.ghc }}- - name: Install dependencies run: | cabal update