From 8706de4abff79846e3681a1f7405e41a61c4f76c Mon Sep 17 00:00:00 2001 From: SimoneDutto Date: Thu, 8 Aug 2024 17:36:20 +0200 Subject: [PATCH] Fix/mod cache action (#1310) * fix go build and enable go cache action on v3 and feature branches --- .github/workflows/cache.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cache.yaml b/.github/workflows/cache.yaml index 55e207999..623fe65a5 100644 --- a/.github/workflows/cache.yaml +++ b/.github/workflows/cache.yaml @@ -1,5 +1,9 @@ name: Cache on default branch -on: push +on: + push: + branches: + - v3 + - "feature*" jobs: go_cache: @@ -18,5 +22,11 @@ jobs: with: go-version-file: 'go.mod' + - name: Add volume files + run: | + touch ./local/vault/approle.json + touch ./local/vault/roleid.txt + touch ./local/vault/vault.env + - name: Build run: go build ./...