Skip to content

Commit a37b63c

Browse files
vdemeestertekton-robot
authored andcommitted
ci: add CI summary job to release-v0.76.x
Add the "CI summary" aggregation job to the CI workflow so the required status check is reported on this release branch. Without it, dependabot PRs targeting release-v0.76.x are blocked because the required "CI summary" check never reports. This mirrors the job already present on release-v0.77.x and newer. Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
1 parent 58ec05d commit a37b63c

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,33 @@ jobs:
177177
e2e-tests:
178178
needs: [build]
179179
uses: ./.github/workflows/e2e-matrix.yml
180+
ci-summary:
181+
name: CI summary
182+
needs: [build, linting, tests, generated, multi-arch-build, e2e-tests]
183+
runs-on: ubuntu-latest
184+
if: always()
185+
steps:
186+
- name: Check CI results
187+
run: |
188+
results=(
189+
"build=${{ needs.build.result }}"
190+
"linting=${{ needs.linting.result }}"
191+
"tests=${{ needs.tests.result }}"
192+
"generated=${{ needs.generated.result }}"
193+
"multi-arch-build=${{ needs.multi-arch-build.result }}"
194+
"e2e-tests=${{ needs.e2e-tests.result }}"
195+
)
196+
failed=0
197+
for r in "${results[@]}"; do
198+
name="${r%%=*}"
199+
result="${r#*=}"
200+
echo "${name}: ${result}"
201+
if [ "$result" != "success" ] && [ "$result" != "skipped" ]; then
202+
failed=1
203+
fi
204+
done
205+
if [ "$failed" -eq 1 ]; then
206+
echo ""
207+
echo "Some CI jobs failed or were cancelled"
208+
exit 1
209+
fi

0 commit comments

Comments
 (0)