ci: do not include branch name in cache key (#10081)

This commit is contained in:
Yoshiya Hinosawa 2021-04-09 14:43:33 +09:00 committed by GitHub
parent 0d9aa81c69
commit 94c666fc45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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'