File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -98,17 +98,17 @@ jobs:
9898 env :
9999 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
100100
101- - name : Wait for PR checks to succeed
101+ - name : Wait for required status check to pass
102102 run : |
103- echo "Waiting for all status checks to pass..."
103+ echo "Waiting for required status check 'validate-xml' to pass..."
104104 for i in {1..30}; do
105- STATES =$(gh pr view ${{ steps.create-pull-request.outputs.pull-request-url }} --json statusCheckRollup --jq '[.statusCheckRollup[].state]' || echo "[] ")
106- echo "statusCheckRollup states = $STATES "
107- if echo "$STATES" | jq -e 'all(. == "SUCCESS")' > /dev/null ; then
108- echo "All checks passed."
105+ STATE =$(gh pr checks ${{ steps.create-pull-request.outputs.pull-request-url }} --check validate-xml -- json conclusion --jq .conclusion || echo "")
106+ echo "validate-xml = $STATE "
107+ if [[ "$STATE" == "SUCCESS" ]] ; then
108+ echo "validate-xml check passed."
109109 break
110110 fi
111- echo "Checks not successful yet, retrying in 10s... ($i/30)"
111+ echo "validate-xml not successful yet, retrying in 10s... ($i/30)"
112112 sleep 10
113113 done
114114 env :
You can’t perform that action at this time.
0 commit comments