Skip to content

Commit 96a919e

Browse files
committed
ci: Add merge_group trigger and set most jobs to be skipped on merge_group
1 parent 857a6a3 commit 96a919e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ on:
2727
- 'docker/**'
2828
- 'Cargo.*'
2929
- '*.rs'
30+
merge_group:
3031

3132
env:
3233
OPERATOR_NAME: "airflow-operator"
@@ -75,6 +76,7 @@ jobs:
7576

7677
build-container-image:
7778
name: Build/Publish ${{ matrix.runner.arch }} Image
79+
if: github.event_name != 'merge_group'
7880
permissions:
7981
id-token: write
8082
strategy:
@@ -157,6 +159,7 @@ jobs:
157159

158160
publish-index-manifest:
159161
name: Publish/Sign ${{ needs.build-container-image.outputs.operator-version }} Index
162+
if: github.event_name != 'merge_group'
160163
needs:
161164
- build-container-image
162165
permissions:
@@ -179,6 +182,7 @@ jobs:
179182

180183
publish-helm-chart:
181184
name: Package/Publish ${{ needs.build-container-image.outputs.operator-version }} Helm Chart
185+
if: github.event_name != 'merge_group'
182186
needs:
183187
- build-container-image
184188
permissions:
@@ -204,6 +208,7 @@ jobs:
204208

205209
openshift-preflight-check:
206210
name: Run OpenShift Preflight Check for ${{ needs.build-container-image.outputs.operator-version }}-${{ matrix.arch }}
211+
if: github.event_name != 'merge_group'
207212
needs:
208213
- build-container-image
209214
- publish-index-manifest
@@ -239,12 +244,12 @@ jobs:
239244

240245
notify:
241246
name: Failure Notification
247+
if: (failure() || github.run_attempt > 1) && github.event_name != 'merge_group'
242248
needs:
243249
- build-container-image
244250
- publish-index-manifest
245251
- publish-helm-chart
246252
runs-on: ubuntu-latest
247-
if: failure() || github.run_attempt > 1
248253
steps:
249254
- name: Checkout Repository
250255
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

0 commit comments

Comments
 (0)