Skip to content

Commit 2c0a4d3

Browse files
authored
Merge pull request #97 from rudnerbjoern/dev
Rename wait step to clarify it checks for 'validate-xml' status befor…
2 parents 24cd207 + 508453a commit 2c0a4d3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/combine-schema.v3.2.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)