diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2021-04-08 23:56:43 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 10:56:43 -0400 |
commit | c4b21fbff119a8ce006391d8fb7586877759bcef (patch) | |
tree | c68f16db73ab6e1f63dac72b9eb6f0036d775c69 | |
parent | 543080de559d997d5ff911e8a8a1625d51f2e0bd (diff) |
ci: fallback to main's cache (#10068)
-rw-r--r-- | .github/workflows/ci.yml | 4 |
1 files changed, 3 insertions, 1 deletions
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' |