From e4ea353957107abaf621a6f3acab787ba1c0f9e4 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Sun, 3 Nov 2024 19:25:21 +0100 Subject: [PATCH] fix(ci): attempt another fix for clustertool ci caching --- .github/workflows/clustertool.release.yaml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/clustertool.release.yaml b/.github/workflows/clustertool.release.yaml index 5a7cbacb554f..d16e18650735 100644 --- a/.github/workflows/clustertool.release.yaml +++ b/.github/workflows/clustertool.release.yaml @@ -11,24 +11,18 @@ jobs: goreleaser: runs-on: actions-runners steps: - + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 + with: + fetch-depth: 0 - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5 with: go-version: stable - - name: Setup Golang caches - uses: actions/cache@v4 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-golang- + cache: true + cache-dependency-path: | + **/go.mod + **/go.sum # - name: Install Syft # run: sudo curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 - with: - fetch-depth: 0 - uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6 with: args: release --clean