summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-04-08 19:52:01 +0800
committerGitHub <noreply@github.com>2021-04-08 20:52:01 +0900
commitd2e500e1cf7d27132fee92cc09238e1bc98897c6 (patch)
treee134ac499f72e6c534a75f35c3c1fcfb1191dffb
parentee07ef2962e5fe52e5f40b7516cdd813109e6104 (diff)
ci: use repository and ref as part of the cache key (#10067)
-rw-r--r--.github/workflows/ci.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index da415dd6e..9fb07576c 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'