Skip to content

Commit c0043bd

Browse files
authored
Merge pull request #156 from cisagov/improvement/better_support_merge_queues
Improve merge queue support
2 parents 6f23c97 + 6503a9e commit c0043bd

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
name: build
33

44
on:
5-
push:
5+
merge_group:
6+
types:
7+
- checks_requested
68
pull_request:
9+
push:
710
repository_dispatch:
8-
types: [apb]
11+
types:
12+
- apb
913

1014
env:
1115
CURL_CACHE_DIR: ~/.cache/curl
@@ -57,8 +61,8 @@ jobs:
5761
# it relies on the existence of a go.sum file.
5862
cache: false
5963
go-version: "1.20"
60-
- name: Lookup Go cache directory
61-
id: go-cache
64+
- id: go-cache
65+
name: Lookup Go cache directory
6266
run: |
6367
echo "dir=$(go env GOCACHE)" >> $GITHUB_OUTPUT
6468
- uses: actions/cache@v3
@@ -69,6 +73,10 @@ jobs:
6973
packer${{ steps.setup-env.outputs.packer-version }}-\
7074
tf${{ steps.setup-env.outputs.terraform-version }}-"
7175
with:
76+
key: "${{ env.BASE_CACHE_KEY }}\
77+
${{ hashFiles('**/requirements-test.txt') }}-\
78+
${{ hashFiles('**/requirements.txt') }}-\
79+
${{ hashFiles('**/.pre-commit-config.yaml') }}"
7280
# Note that the .terraform directory IS NOT included in the
7381
# cache because if we were caching, then we would need to use
7482
# the `-upgrade=true` option. This option blindly pulls down the
@@ -80,10 +88,6 @@ jobs:
8088
${{ env.PRE_COMMIT_CACHE_DIR }}
8189
${{ env.CURL_CACHE_DIR }}
8290
${{ 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') }}"
8791
restore-keys: |
8892
${{ env.BASE_CACHE_KEY }}
8993
- name: Setup curl cache

0 commit comments

Comments
 (0)