Skip to content

Commit 6a11eb5

Browse files
committed
Add rubocop cache restore key by github.ref
1 parent 903f041 commit 6a11eb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ jobs:
7575
uses: actions/cache@v2
7676
with:
7777
path: tmp/rubocop-cache
78-
key: ${{ runner.os }}-rubocop-cache-${{ github.sha }}
78+
key: ${{ runner.os }}-rubocop-cache-${{ github.ref }}-${{ github.sha }}
7979
restore-keys: |
80+
${{ runner.os }}-rubocop-cache-${{ github.ref }}-
8081
${{ runner.os }}-rubocop-cache-
8182
- name: Set up Node
8283
uses: actions/setup-node@v2

0 commit comments

Comments
 (0)