File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 2
2
name : build
3
3
4
4
on :
5
- push :
6
5
pull_request :
6
+ push :
7
7
repository_dispatch :
8
8
types :
9
9
- apb
58
58
# it relies on the existence of a go.sum file.
59
59
cache : false
60
60
go-version : " 1.20"
61
- - name : Lookup Go cache directory
62
- id : go- cache
61
+ - id : go- cache
62
+ name : Lookup Go cache directory
63
63
run : |
64
64
echo "dir=$(go env GOCACHE)" >> $GITHUB_OUTPUT
65
65
- uses : actions/cache@v3
70
70
packer${{ steps.setup-env.outputs.packer-version }}-\
71
71
tf${{ steps.setup-env.outputs.terraform-version }}-"
72
72
with :
73
+ key : " ${{ env.BASE_CACHE_KEY }}\
74
+ ${{ hashFiles('**/requirements-test.txt') }}-\
75
+ ${{ hashFiles('**/requirements.txt') }}-\
76
+ ${{ hashFiles('**/.pre-commit-config.yaml') }}"
73
77
# Note that the .terraform directory IS NOT included in the
74
78
# cache because if we were caching, then we would need to use
75
79
# the `-upgrade=true` option. This option blindly pulls down the
81
85
${{ env.PRE_COMMIT_CACHE_DIR }}
82
86
${{ env.CURL_CACHE_DIR }}
83
87
${{ steps.go-cache.outputs.dir }}
84
- key : " ${{ env.BASE_CACHE_KEY }}\
85
- ${{ hashFiles('**/requirements-test.txt') }}-\
86
- ${{ hashFiles('**/requirements.txt') }}-\
87
- ${{ hashFiles('**/.pre-commit-config.yaml') }}"
88
88
restore-keys : |
89
89
${{ env.BASE_CACHE_KEY }}
90
90
- name : Setup curl cache
You can’t perform that action at this time.
0 commit comments