Skip to content

Commit 7d92805

Browse files
committed
fix(ci): update cache paths for release job
1 parent 51f0611 commit 7d92805

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,21 @@ jobs:
3434
with:
3535
go-version: 1.16
3636

37+
- id: cache-paths
38+
run: |
39+
echo "::set-output name=build::$(go env GOCACHE)"
40+
echo "::set-output name=mod::$(go env GOMODCACHE)"
41+
3742
- name: Go Build Cache
3843
uses: actions/cache@v2
3944
with:
40-
path: ${{ needs.verify.outputs.go-cache-build }}
45+
path: ${{ steps.cache-paths.outputs.build }}
4146
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
4247

4348
- name: Go Mod Cache
4449
uses: actions/cache@v2
4550
with:
46-
path: ${{ needs.verify.outputs.go-cache-mod }}
51+
path: ${{ steps.cache-paths.outputs.mod }}
4752
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
4853

4954
- name: Import GPG key

0 commit comments

Comments
 (0)