From a29ec5aabca37ff94fa8ab31eff42c00d0ae8056 Mon Sep 17 00:00:00 2001 From: Techassi Date: Fri, 28 Aug 2026 13:25:15 +0200 Subject: [PATCH] ci(template): Add combined checks result This change requires the new combined-checks-result in the send-slack-notification action. The field is available in v0.18.0 and up. --- template/.github/workflows/build.yaml.j2 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/template/.github/workflows/build.yaml.j2 b/template/.github/workflows/build.yaml.j2 index 429ee8ff..e45bf688 100644 --- a/template/.github/workflows/build.yaml.j2 +++ b/template/.github/workflows/build.yaml.j2 @@ -411,9 +411,28 @@ jobs: - finished runs-on: ubuntu-latest steps: + - name: Combine Check Results + id: combine + env: + OPENSHIFT_PREFLIGHT_CHECK_RESULT: ${{ needs.openshift-preflight-check.result }} + CARGO_UDEPS_RESULT: ${{ needs.cargo-udeps.result }} + shell: bash + run: | + set -euo pipefail + [ -n "${RUNNER_DEBUG+set}" ] && set -x + + COMBINED_CHECKS_RESULT="success" + + if [ "$OPENSHIFT_PREFLIGHT_CHECK_RESULT" == "failure" ] || [ "$CARGO_UDEPS_RESULT" == "failure" ]; then + COMBINED_CHECKS_RESULT="failure" + fi + + echo "COMBINED_CHECKS_RESULT=$COMBINED_CHECKS_RESULT" | tee -a "$GITHUB_OUTPUT" + - name: Send Notification uses: stackabletech/actions/send-slack-notification@0fe048f952bee522474903a925ea48dc706a0bb4 # v0.17.5 with: + combined-checks-result: ${{ steps.combine.outputs.COMBINED_CHECKS_RESULT }} publish-helm-chart-result: ${{ needs.publish-helm-chart.result }} publish-manifests-result: ${{ needs.publish-index-manifest.result }} build-result: ${{ needs.build-container-image.result }}