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