From 94c666fc454c3a6044c6db898839105e09b319a4 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Fri, 9 Apr 2021 14:43:33 +0900 Subject: [PATCH] ci: do not include branch name in cache key (#10081) --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32b473ee1d..a32193703e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -178,9 +178,7 @@ jobs: ~/.cargo/git ~/.cargo/registry ./target - key: cache3-${{ github.ref }}-${{ matrix.os }}-${{ matrix.kind }}-${{ hashFiles('Cargo.lock') }} - restore-keys: | - cache3-refs/heads/main-${{ matrix.os }}-${{ matrix.kind }}-${{ hashFiles('Cargo.lock') }} + key: cache4-${{ matrix.os }}-${{ matrix.kind }}-${{ hashFiles('Cargo.lock') }} - name: test_format.js if: matrix.kind == 'lint'