Skip to content

Commit e87fb77

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 c469291 commit e87fb77

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- main
8+
merge_group:
89

910
concurrency:
1011
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -17,10 +18,12 @@ jobs:
1718
os: [arm64, amd64]
1819
include:
1920
- os: amd64
20-
name: 'DevContainer (amd64)'
21+
name: 'build/amd64'
22+
description: "DevContainer (amd64)"
2123
runner: ubuntu-24.04
2224
- os: arm64
23-
name: 'DevContainer (arm64)'
25+
name: 'build/arm64'
26+
description: "DevContainer (arm64)"
2427
runner: ubuntu-24.04-arm
2528

2629
name: '${{ matrix.name }}'
@@ -72,6 +75,24 @@ jobs:
7275
./scripts/publish.sh --${{ matrix.os }} "main"
7376
fi
7477
78+
overall-result:
79+
name: build/overall-result
80+
description: "Overall Result"
81+
runs-on: ubuntu-24.04
82+
needs:
83+
[
84+
build/amd64,
85+
build/arm64,
86+
]
87+
if: ${{ !cancelled() }}
88+
steps:
89+
- name: Successful verification
90+
if: ${{ !(contains(needs.*.result, 'failure')) }}
91+
run: exit 0
92+
- name: Failing verification
93+
if: ${{ contains(needs.*.result, 'failure') }}
94+
run: exit 1
95+
7596
merge:
7697
name: 'Merge Labels (main only)'
7798
needs: ["build"]

0 commit comments

Comments
 (0)