From 26f9c2b1112287987b5db32109d82fa63635d4c6 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Mon, 1 Apr 2024 12:54:42 +0200 Subject: [PATCH] fix: add name to cache key generation --- .gitea/workflows/ci.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 34fe4a5..f5d9633 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -20,19 +20,20 @@ jobs: with: go-version-file: go.mod check-latest: true - - uses: https://gitea.com/actions/go-hashfiles@v0.0.1 + - name: Create cache key + uses: https://gitea.com/actions/go-hashfiles@v0.0.1 id: hash-go with: patterns: | go.mod - go.sum + go.sum - name: cache go id: cache-go uses: actions/cache@v4 with: path: | /go_path - /go_cache + /go_cache key: go_path-${{ steps.hash-go.outputs.hash }} - name: build run: make build