File tree 1 file changed +5
-4
lines changed 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,16 @@ runs:
27
27
id : get_cache_dirs
28
28
shell : bash
29
29
run : |
30
- echo "::set-output name=go-mod-cache::$(go env GOMODCACHE)"
31
- echo "::set-output name=go-cache::$(go env GOCACHE)"
30
+ echo "go-mod-cache=$(go env GOMODCACHE)" >> $GITHUB_ENV
31
+ echo "go-cache=$(go env GOCACHE)" >> $GITHUB_ENV
32
+
32
33
# We split up GOMODCACHE from GOCACHE because the latter must be invalidated
33
34
# on code change, but the former can be kept.
34
35
- name : Cache $GOMODCACHE
35
36
uses : buildjet/cache@v3
36
37
with :
37
38
path : |
38
- ${{ steps.get_cache_dirs.outputs.go-mod-cache }}}
39
+ ${{ env.GOMODCACHE }}}
39
40
key : gomodcache-${{ runner.os }}-${{ hashFiles('**/go.sum') }}-${{ github.job }}
40
41
restore-keys : |
41
42
gomodcache-${{ runner.os }}-${{ hashFiles('**/go.sum') }}-
45
46
uses : buildjet/cache@v3
46
47
with :
47
48
path : |
48
- ${{ steps.get_cache_dirs.outputs.go-cache }}}
49
+ ${{ env.GOCACHE }}}
49
50
# Job name must be included in the key for effective
50
51
# test cache reuse.
51
52
key : gocache-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/*.go', 'go.**') }}
You can’t perform that action at this time.
0 commit comments