From 5ecad967a3472a75a90502f7088a3e3b3ce981bd Mon Sep 17 00:00:00 2001 From: Fredrik Averpil Date: Thu, 15 Aug 2024 23:28:21 +0200 Subject: [PATCH] feat: check for changes in any go.sum This invalidates the cache upon changing _any_ of the go.sum files in the project. This is an optimization change. --- actions/setup/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/setup/action.yml b/actions/setup/action.yml index da1eaef8..f97a6fe7 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -53,7 +53,7 @@ runs: /home/runner/.cache/go-build /home/runner/go/pkg/mod /home/runner/go/bin - key: ${{ runner.os }}-sage-${{ github.workflow }}-${{ github.job }}-${{ inputs.cacheKey }}-${{ inputs.go-version }}-${{ hashFiles('./.sage/go.sum') }} + key: ${{ runner.os }}-sage-${{ github.workflow }}-${{ github.job }}-${{ inputs.cacheKey }}-${{ inputs.go-version }}-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-sage-${{ github.workflow }}-${{ github.job }}-${{ inputs.cacheKey }}-${{ inputs.go-version }}- ${{ runner.os }}-sage-${{ github.workflow }}-${{ github.job }}-${{ inputs.cacheKey }}-