File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -29,20 +29,17 @@ jobs:
2929 PR_NUMBER : ${{ github.event.pull_request.number }}
3030 run : |
3131 set -e
32- sleep 30
32+
3333
3434 MAX_ATTEMPTS=$((12*60))
3535 INTERVAL=60
3636
37+ sleep $INTERVAL
3738 for ((i=1;i<=MAX_ATTEMPTS;i++)); do
3839 echo "Polling PR checks (attempt $i/$MAX_ATTEMPTS)..."
40+
3941 # We want to watch for pending checks beside this check
40- echo "Raw checks:"
41- gh pr checks $PR_NUMBER --json name,state
4242 checks=$(gh pr checks $PR_NUMBER --json name,state --jq '[ .[] | select(.name != "yamato-supervisor") ]')
43-
44- checks=$(gh pr checks $PR_NUMBER --json name,state)
45- echo "$checks" | jq .
4643
4744 pending=$(echo "$checks" | jq '[.[] | select(.state == "IN_PROGRESS")] | length')
4845 skipping=$(echo "$checks" | jq '[.[] | select(.state == "SKIPPED")] | length')
You can’t perform that action at this time.
0 commit comments