From c4b21fbff119a8ce006391d8fb7586877759bcef Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Thu, 8 Apr 2021 23:56:43 +0900 Subject: ci: fallback to main's cache (#10068) --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.github/workflows/ci.yml') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9fb07576c..4f76e8cd7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -170,7 +170,9 @@ jobs: ~/.cargo/git ~/.cargo/registry ./target - key: cache-${{ github.repository }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.kind }}-${{ hashFiles('Cargo.lock') }} + key: cache-${{ github.ref }}-${{ matrix.os }}-${{ matrix.kind }}-${{ hashFiles('Cargo.lock') }} + restore-keys: | + cache-refs/heads/main-${{ matrix.os }}-${{ matrix.kind }}-${{ hashFiles('Cargo.lock') }} - name: test_format.js if: matrix.kind == 'lint' -- cgit v1.2.3