Skip to content

Commit

Permalink
tools: fix skip PR if CI is still running
Browse files Browse the repository at this point in the history
resolve: #40330

PR-URL: #42377
Fixes: #40330
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Mestery <[email protected]>
  • Loading branch information
meixg committed Mar 21, 2022
1 parent 419f02b commit 8f07452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/actions/commit-queue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ for pr in "$@"; do
fi

# Skip PR if CI is still running
if ncu-ci url "https://github.com/${OWNER}/${REPOSITORY}/pull/${pr}" 2>&1 | grep "^Result *PENDING"; then
if gh pr checks "$pr" | grep -q "\spending\s"; then
echo "pr ${pr} skipped, CI still running"
continue
fi
Expand Down

0 comments on commit 8f07452

Please sign in to comment.