We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a5e762 commit 3bca096Copy full SHA for 3bca096
.github/workflows/_conda-forge-package-release.yml
@@ -73,7 +73,7 @@ jobs:
73
if [ -n "$PR" ]; then
74
CI_STATUS=$(gh pr view "$PR" --repo "$REPO" \
75
--json statusCheckRollup -q \
76
- '[.statusCheckRollup[].conclusion] | if length == 0 then "pending" elif all(. == "SUCCESS") then "success" else "failure" end')
+ '[.statusCheckRollup | group_by(.name) | map(sort_by(.startedAt) | last | .conclusion) | if length == 0 then "pending" elif all(. == "SUCCESS") then "success" elif any(. == null or . == "") then "pending" else "failure" end][-1]')
77
echo "CI status: ${CI_STATUS}"
78
if [ "$CI_STATUS" = "success" ]; then
79
echo "CI passed, merging PR #${PR}..."
0 commit comments