File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -43,21 +43,23 @@ jobs:
43
43
uses : actions/cache@v2
44
44
with :
45
45
path : /tmp/docker/cache
46
- key : docker-cache-${{ github.base_ref }}-${{ github.run_id }}
46
+ key : docker-cache-${{ github.base_ref }}-${{ github.head_ref }}-${{ github. run_id }}
47
47
restore-keys : |
48
48
docker-cache-${{ github.base_ref }}-${{ github.head_ref }}-
49
49
docker-cache-${{ github.base_ref }}-
50
+ docker-cache-master-
50
51
docker-cache-
51
52
docker-cache
52
53
if : github.event_name == 'pull_request'
53
54
- name : Cache
54
55
uses : actions/cache@v2
55
56
with :
56
57
path : /tmp/docker/cache
57
- key : docker-cache-${{ github.head_ref }}-${{ github.run_id }}
58
+ key : docker-cache-${{ github.ref_name }}-${{ github.ref_name }}-${{ github.run_id }}
58
59
restore-keys : |
59
- docker-cache-${{ github.head_ref }}-${{ github.head_ref }}-
60
- docker-cache-${{ github.head_ref }}-
60
+ docker-cache-${{ github.ref_name }}-${{ github.ref_name }}-
61
+ docker-cache-${{ github.ref_name }}-
62
+ docker-cache-master-
61
63
docker-cache-
62
64
docker-cache
63
65
if : github.event_name == 'push'
You can’t perform that action at this time.
0 commit comments