@@ -5,6 +5,8 @@ on: # yamllint disable-line rule:truthy
55 merge_group :
66 types :
77 - checks_requested
8+ # We use the default activity types for the pull_request event as specified here:
9+ # https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request
810 pull_request :
911 push :
1012 repository_dispatch :
@@ -118,18 +120,20 @@ jobs:
118120 name : Lookup Go cache directory
119121 run : |
120122 echo "dir=$(go env GOCACHE)" >> $GITHUB_OUTPUT
121- - uses : actions/cache@v4
123+ - uses : actions/cache@v5
122124 env :
123- BASE_CACHE_KEY : ${{ github.job }}-${{ runner.os }}-\
124- py${{ steps.setup-python.outputs.python-version }}-\
125- go${{ steps.setup-go.outputs.go-version }}-\
126- packer${{ steps.setup-env.outputs.packer-version }}-\
127- tf${{ steps.setup-env.outputs.terraform-version }}-
125+ BASE_CACHE_KEY : >-
126+ ${{ github.job }}-${{ runner.os
127+ }}-py${{ steps.setup-python.outputs.python-version
128+ }}-go${{ steps.setup-go.outputs.go-version
129+ }}-packer${{ steps.setup-env.outputs.packer-version
130+ }}-tf${{ steps.setup-env.outputs.terraform-version }}-
128131 with :
129- key : ${{ env.BASE_CACHE_KEY }}\
130- ${{ hashFiles('**/requirements-test.txt') }}-\
131- ${{ hashFiles('**/requirements.txt') }}-\
132- ${{ hashFiles('**/.pre-commit-config.yaml') }}
132+ key : >-
133+ ${{ env.BASE_CACHE_KEY }}${{
134+ hashFiles('**/requirements-test.txt') }}-${{
135+ hashFiles('**/requirements.txt') }}-${{
136+ hashFiles('**/.pre-commit-config.yaml') }}
133137 # Note that the .terraform directory IS NOT included in the
134138 # cache because if we were caching, then we would need to use
135139 # the `-upgrade=true` option. This option blindly pulls down the
@@ -187,7 +191,7 @@ jobs:
187191 -o $(go env GOPATH)/bin/terraform-docs
188192 - name : Install dependencies
189193 run : |
190- python -m pip install --upgrade pip setuptools wheel
194+ python -m pip install --upgrade pip setuptools
191195 pip install --upgrade --requirement requirements-test.txt
192196 - name : Set up pre-commit hook environments
193197 run : pre-commit install-hooks
0 commit comments