File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
.github/actions/cache-query-compilation
swift/actions/build-and-test Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,19 @@ runs:
23
23
run : |
24
24
MERGE_BASE=$(git cat-file commit $GITHUB_SHA | grep '^parent ' | head -1 | cut -f 2 -d " ")
25
25
echo "merge_base=$MERGE_BASE" >> $GITHUB_ENV
26
- - name : Restore read-only cache (PR)
26
+ - name : Restore cache (PR)
27
27
if : ${{ github.event_name == 'pull_request' }}
28
- uses : erik-krogh/ actions- cache@a88d0603fe5fb5606db9f002dfcadeb32b5f84c6
28
+ uses : actions/ cache/restore@v3
29
29
with :
30
30
path : ' **/.cache'
31
- read-only : true
32
31
key : codeql-compile-${{ inputs.key }}-pr-${{ github.sha }}
33
32
restore-keys : |
34
33
codeql-compile-${{ inputs.key }}-${{ github.base_ref }}-${{ env.merge_base }}
35
34
codeql-compile-${{ inputs.key }}-${{ github.base_ref }}-
36
35
codeql-compile-${{ inputs.key }}-main-
37
- - name : Fill cache (push)
36
+ - name : Fill cache (only branch push)
38
37
if : ${{ github.event_name != 'pull_request' }}
39
- uses : erik-krogh/ actions- cache@a88d0603fe5fb5606db9f002dfcadeb32b5f84c6
38
+ uses : actions/ cache@v3
40
39
with :
41
40
path : ' **/.cache'
42
41
key : codeql-compile-${{ inputs.key }}-${{ github.ref_name }}-${{ github.sha }} # just fill on main
Original file line number Diff line number Diff line change @@ -21,18 +21,17 @@ runs:
21
21
echo "merge_base=$MERGE_BASE" >> $GITHUB_ENV
22
22
- name : Restore read-only cache (PR)
23
23
if : ${{ github.event_name == 'pull_request' }}
24
- uses : erik-krogh/ actions- cache@a88d0603fe5fb5606db9f002dfcadeb32b5f84c6
24
+ uses : actions/ cache/restore@v3
25
25
with :
26
26
path : ' bazel-cache'
27
- read-only : true
28
27
key : bazel-pr-${{ github.sha }}
29
28
restore-keys : |
30
29
bazel-${{ github.base_ref }}-${{ env.merge_base }}
31
30
bazel-${{ github.base_ref }}-
32
31
bazel-main-
33
32
- name : Fill cache (push)
34
33
if : ${{ github.event_name != 'pull_request' }}
35
- uses : erik-krogh/ actions- cache@a88d0603fe5fb5606db9f002dfcadeb32b5f84c6
34
+ uses : actions/ cache@v3
36
35
with :
37
36
path : ' bazel-cache'
38
37
key : bazel-${{ github.ref_name }}-${{ github.sha }} # just fill on main
You can’t perform that action at this time.
0 commit comments