From 333c75bd200ad6359a960f17030e483c4b5e9c07 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Sat, 19 Oct 2024 20:11:37 +0200 Subject: [PATCH] Update containers.build.yaml Signed-off-by: Kjeld Schouten --- .github/workflows/containers.build.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/containers.build.yaml b/.github/workflows/containers.build.yaml index ad9e32a3108..621885392e7 100644 --- a/.github/workflows/containers.build.yaml +++ b/.github/workflows/containers.build.yaml @@ -345,11 +345,19 @@ jobs: env: COSIGN_EXPERIMENTAL: 1 + + # Summarize matrix https://github.community/t/status-check-for-a-matrix-jobs/127354/7 container-build-complete: needs: [build] if: ${{ always() }} name: Container Build Completed runs-on: ubuntu-latest steps: - - name: complete message - run: echo "Container Build and Tests Completed Successfully" + - name: Check Results + run: | + if [[ "${{ needs.build.result }}" != "success" ]]; then + echo "One or more jobs failed!" + exit 1 + else + echo "Container Build and Tests Completed Successfully" + fi