From d2e500e1cf7d27132fee92cc09238e1bc98897c6 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Thu, 8 Apr 2021 19:52:01 +0800 Subject: [PATCH] ci: use repository and ref as part of the cache key (#10067) --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da415dd6ed..9fb07576c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -170,7 +170,7 @@ jobs: ~/.cargo/git ~/.cargo/registry ./target - key: cache-1-${{ matrix.os }}-${{ matrix.kind }}-${{ hashFiles('Cargo.lock') }} + key: cache-${{ github.repository }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.kind }}-${{ hashFiles('Cargo.lock') }} - name: test_format.js if: matrix.kind == 'lint'