From 0165471ca0ff675faa744bb86b6f88ae6a590d8a Mon Sep 17 00:00:00 2001 From: Hiram Chirino Date: Mon, 18 Mar 2024 17:07:04 -0400 Subject: [PATCH] Lets make sure we rev the gh actions cache on a go version change. Signed-off-by: Hiram Chirino --- .github/actions/setup-go-env/action.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/setup-go-env/action.yaml b/.github/actions/setup-go-env/action.yaml index cae5119b3..30bdb9aff 100644 --- a/.github/actions/setup-go-env/action.yaml +++ b/.github/actions/setup-go-env/action.yaml @@ -20,19 +20,19 @@ runs: uses: actions/cache@v3 with: path: ${{ steps.go-cache-paths.outputs.go-build }} - key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum', './hack/install-tools.sh') }} + key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.mod', '**/go.sum', './hack/install-tools.sh') }} - name: Go Mod Cache uses: actions/cache@v3 with: path: ${{ steps.go-cache-paths.outputs.go-mod }} - key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum', './hack/install-tools.sh') }} + key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.mod', '**/go.sum', './hack/install-tools.sh') }} - name: Go Bin Cache uses: actions/cache@v3 with: path: ${{ steps.go-cache-paths.outputs.go-bin }} - key: ${{ runner.os }}-go-bin-${{ hashFiles('**/go.sum', './hack/install-tools.sh') }} + key: ${{ runner.os }}-go-bin-${{ hashFiles('**/go.mod', '**/go.sum', './hack/install-tools.sh') }} - name: Download Go Modules shell: bash