From e9755bceb3a9b83eb2f232114b213bffe315ff2b Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Mon, 12 Jan 2026 19:09:18 -0600 Subject: [PATCH] Report failing jobs when "all required jobs check" fails (#17433) You can tell this by looking at the JSON input but that's not quite friendly enough for me. --------- Co-authored-by: Claude --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fcc2d6d57..8bed73eea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -295,4 +295,11 @@ jobs: runs-on: ubuntu-latest steps: - name: "Check required jobs passed" - run: echo '${{ toJSON(needs) }}' | jq -e 'all(.[]; .result == "success" or .result == "skipped")' > /dev/null + run: | + failing=$(echo "$NEEDS_JSON" | jq -r 'to_entries[] | select(.value.result != "success" and .value.result != "skipped") | "\(.key): \(.value.result)"') + if [ -n "$failing" ]; then + echo "$failing" + exit 1 + fi + env: + NEEDS_JSON: ${{ toJSON(needs) }}