Skip to content
Merged
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
5 changes: 4 additions & 1 deletion scripts/release/land.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ while :; do
sha=${head#* }
js=$(gh api "repos/$R/commits/$sha/check-runs?per_page=100" --jq '[.check_runs[]|select(.name|startswith("codecov/")|not)|{n:.name,s:.status,c:(.conclusion//"")}]')
total=$(echo "$js" | jq length); open=$(echo "$js" | jq '[.[]|select(.s!="completed")]|length')
[ "$total" -ge 4 ] && [ "$open" = 0 ] && break
# A re-run job leaves the check-run list for a moment: count the workflow
# runs too, or a re-run's gap reads as "all done" (#114 merged that way).
runs=$(gh api "repos/$R/actions/runs?head_sha=$sha&per_page=100" --jq '[.workflow_runs[]|select(.status!="completed")]|length')
[ "$total" -ge 4 ] && [ "$open" = 0 ] && [ "$runs" = 0 ] && break
sleep 60
done
echo "$js" | jq -r '.[]|.c' | sort | uniq -c | sed "s/^/#$N /"
Expand Down
Loading