mirror of
https://github.com/astral-sh/uv
synced 2026-01-22 22:10:11 -05:00
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 <noreply@anthropic.com>
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -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) }}
|
||||
|
||||
Reference in New Issue
Block a user