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 authored and targos committed Jul 11, 2022
1 parent 947e4aa commit 4080425
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 4080425

Please sign in to comment.