Skip to content

Commit

Permalink
ci macOS: wait on *both* builds
Browse files Browse the repository at this point in the history
At least I hope this will work as expected.
  • Loading branch information
vcunat committed Oct 3, 2023
1 parent c9b8a23 commit 50eb5ca
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ci/gh_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ def exit(msg='', html_url='', code=1):
elif response.status_code == 200:
data = json.loads(response.content.decode('utf-8'))
try:
run = data['workflow_runs'][0]
conclusion = run['conclusion']
html_url = run['html_url']
commit_sha = run['head_sha']
for i in range(0, 1): # two runs ATM
run = data['workflow_runs'][i]
conclusion = run['conclusion']
html_url = run['html_url']
commit_sha = run['head_sha']
except (KeyError, IndexError):
time.sleep(POLL_DELAY)
continue
Expand Down

0 comments on commit 50eb5ca

Please sign in to comment.