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 juanarbol committed Apr 4, 2022
1 parent f39d740 commit 17770be
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 17770be

Please sign in to comment.