From cff6f7aa1d7987a658b030b2bc69df7c25f515c8 Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Thu, 6 Jun 2024 14:51:08 -0700 Subject: [PATCH] Expand GHA go caching to includ newest release branch (#10307) Signed-off-by: Derek Nola --- .github/actions/setup-go/action.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/setup-go/action.yaml b/.github/actions/setup-go/action.yaml index 8bc4b84eb7..ac364c509e 100644 --- a/.github/actions/setup-go/action.yaml +++ b/.github/actions/setup-go/action.yaml @@ -6,10 +6,10 @@ runs: - uses: actions/setup-go@v5 with: go-version-file: 'go.mod' # Just use whatever version is in the go.mod file - cache: ${{ github.ref == 'refs/heads/master' }} + cache: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/release-1.29' }} - name: Prepare for go cache - if: ${{ github.ref != 'refs/heads/master' }} + if: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/release-1.29' }} shell: bash run: | echo "GO_CACHE=$(go env GOCACHE)" | tee -a "$GITHUB_ENV" @@ -17,7 +17,7 @@ runs: echo "GO_VERSION=$(go env GOVERSION | tr -d 'go')" | tee -a "$GITHUB_ENV" - name: Setup read-only cache - if: ${{ github.ref != 'refs/heads/master' }} + if: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/release-1.29' }} uses: actions/cache/restore@v4 with: path: |