Skip to content

Commit eb3be17

Browse files
committed
ci: Add merge_group trigger and set most jobs to be skipped on merge_group
1 parent b30886a commit eb3be17

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: "hbase-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
@@ -238,12 +243,12 @@ jobs:
238243

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

0 commit comments

Comments
 (0)