Skip to content

Commit b77138a

Browse files
committed
Prepare Repository for Merge Queue
- Add Overall Result job which depends on all required status checks - Add merge_group event
1 parent db135c5 commit b77138a

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
branches:
88
- main
9+
merge_group:
910

1011
concurrency:
1112
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -18,10 +19,12 @@ jobs:
1819
os: [arm64, amd64]
1920
include:
2021
- os: amd64
21-
name: DevContainer (amd64)
22+
name: build/amd64
23+
description: DevContainer (amd64)
2224
runner: ubuntu-24.04
2325
- os: arm64
24-
name: DevContainer (arm64)
26+
name: build/arm64
27+
description: DevContainer (arm64)
2528
runner: ubuntu-24.04-arm
2629

2730
name: ${{ matrix.name }}
@@ -73,6 +76,20 @@ jobs:
7376
./scripts/publish.sh --${{ matrix.os }} "main"
7477
fi
7578
79+
overall-result:
80+
name: build/overall-result
81+
description: Overall Result
82+
runs-on: ubuntu-24.04
83+
needs: [build/amd64, build/arm64]
84+
if: ${{ !cancelled() }}
85+
steps:
86+
- name: Successful verification
87+
if: ${{ !(contains(needs.*.result, 'failure')) }}
88+
run: exit 0
89+
- name: Failing verification
90+
if: ${{ contains(needs.*.result, 'failure') }}
91+
run: exit 1
92+
7693
merge:
7794
name: Merge Labels (main only)
7895
needs: [build]

0 commit comments

Comments
 (0)