Skip to content

Commit

Permalink
Merge pull request #1992 from chirino/rev-cache-on-go-version-change
Browse files Browse the repository at this point in the history
Lets make sure we rev the gh actions cache on a go version change.
  • Loading branch information
chirino authored Mar 18, 2024
2 parents 283576d + 0165471 commit e45d2c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/setup-go-env/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e45d2c9

Please sign in to comment.