Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/reusable-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ jobs:
no_checks_count=0

completed=$(echo "$checks" | jq '[.[] | select(.status == "completed")] | length')
failed=$(echo "$checks" | jq '[.[] | select(.status == "completed" and .conclusion != "success" and .conclusion != "skipped" and .conclusion != "neutral")] | length')
failed=$(echo "$checks" | jq '[.[] | select(.status == "completed" and .conclusion != "success" and .conclusion != "skipped" and .conclusion != "neutral" and .conclusion != "cancelled")] | length')

echo "Checks: ${completed}/${total} completed, ${failed} failed"

if [[ "$completed" -eq "$total" ]]; then
if [[ "$failed" -gt 0 ]]; then
echo "::warning::${failed} check(s) failed — skipping review"
echo "$checks" | jq -r '.[] | select(.status == "completed" and .conclusion != "success" and .conclusion != "skipped" and .conclusion != "neutral") | " FAILED: \(.name) (\(.conclusion))"'
echo "$checks" | jq -r '.[] | select(.status == "completed" and .conclusion != "success" and .conclusion != "skipped" and .conclusion != "neutral" and .conclusion != "cancelled") | " FAILED: \(.name) (\(.conclusion))"'
echo "passed=false" >> "$GITHUB_OUTPUT"
else
echo "All ${total} checks passed"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sdlc-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ jobs:

total=$(echo "$external_checks" | jq 'length')
completed=$(echo "$external_checks" | jq '[.[] | select(.status == "completed")] | length')
failed=$(echo "$external_checks" | jq '[.[] | select(.status == "completed" and .conclusion != "success" and .conclusion != "skipped" and .conclusion != "neutral")] | length')
failed=$(echo "$external_checks" | jq '[.[] | select(.status == "completed" and .conclusion != "success" and .conclusion != "skipped" and .conclusion != "neutral" and .conclusion != "cancelled")] | length')
pending=$(echo "$external_checks" | jq -r '[.[] | select(.status != "completed")] | map(.name) | join(", ")')

echo "Checks: ${completed}/${total} completed, ${failed} failed (elapsed: ${elapsed}s)"
Expand Down Expand Up @@ -618,7 +618,7 @@ jobs:
# All checks completed but some failed — keep waiting, autofix may push a new commit
if [[ "$completed" -eq "$total" && "$failed" -gt 0 ]]; then
echo "Checks completed with ${failed} failure(s) — waiting for autofix..."
echo "$external_checks" | jq -r '.[] | select(.status == "completed" and .conclusion != "success" and .conclusion != "skipped" and .conclusion != "neutral") | " FAILED: \(.name) (\(.conclusion))"'
echo "$external_checks" | jq -r '.[] | select(.status == "completed" and .conclusion != "success" and .conclusion != "skipped" and .conclusion != "neutral" and .conclusion != "cancelled") | " FAILED: \(.name) (\(.conclusion))"'
else
echo "Waiting for: ${pending}"
fi
Expand Down
Loading