From 8dc04ce7a47221ebb9ffea271514d1372a979854 Mon Sep 17 00:00:00 2001 From: Trim21 Date: Tue, 15 Oct 2024 07:16:44 +0800 Subject: [PATCH] ci: stop reuse cache with different go.mod --- .github/workflows/build.yaml | 1 - .github/workflows/lint.yaml | 1 - .github/workflows/release-docker.yaml | 1 - .github/workflows/test.yaml | 1 - 4 files changed, 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c8c0b500..56f80f84 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -49,7 +49,6 @@ jobs: key: go-cache-122-${{ hashFiles('**/go.sum') }}-build restore-keys: | go-cache-122-${{ hashFiles('**/go.sum') }}- - go-cache-122- - name: Install Task uses: arduino/setup-task@v2 diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 8cf84936..cdd1caba 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -46,7 +46,6 @@ jobs: key: go-cache-122-${{ hashFiles('**/go.sum') }}-lint restore-keys: | go-cache-122-${{ hashFiles('**/go.sum') }}- - go-cache-122- - run: go get -t ./... diff --git a/.github/workflows/release-docker.yaml b/.github/workflows/release-docker.yaml index d884e853..55bdffcf 100644 --- a/.github/workflows/release-docker.yaml +++ b/.github/workflows/release-docker.yaml @@ -39,7 +39,6 @@ jobs: key: go-cache-122-${{ hashFiles('**/go.sum') }}-build restore-keys: | go-cache-122-${{ hashFiles('**/go.sum') }}- - go-cache-122- - run: echo "SHA=${GITHUB_REF##*/}" >> $GITHUB_ENV if: "${{ startsWith(github.ref, 'refs/tags/') }}" diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a469247d..120a98cb 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -56,7 +56,6 @@ jobs: key: go-cache-122-${{ hashFiles('**/go.sum') }}-test restore-keys: | go-cache-122-${{ hashFiles('**/go.sum') }}- - go-cache-122- - run: go get -t ./...