Skip to content

Commit 3bca096

Browse files
committed
Update checking latest run result
1 parent 3a5e762 commit 3bca096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/_conda-forge-package-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
if [ -n "$PR" ]; then
7474
CI_STATUS=$(gh pr view "$PR" --repo "$REPO" \
7575
--json statusCheckRollup -q \
76-
'[.statusCheckRollup[].conclusion] | if length == 0 then "pending" elif all(. == "SUCCESS") then "success" else "failure" end')
76+
'[.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]')
7777
echo "CI status: ${CI_STATUS}"
7878
if [ "$CI_STATUS" = "success" ]; then
7979
echo "CI passed, merging PR #${PR}..."

0 commit comments

Comments
 (0)