diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2023-10-03 11:26:48 +0200 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2023-10-03 11:30:43 +0200 |
commit | 50eb5ca4871a6088fcf4b2c0ae2cceec26a28493 (patch) | |
tree | 25d11e218be1f4436ba851a7dc3ff90a9ea96552 /ci | |
parent | ci macOS: update Knot DNS (diff) | |
download | knot-resolver-50eb5ca4871a6088fcf4b2c0ae2cceec26a28493.tar.xz knot-resolver-50eb5ca4871a6088fcf4b2c0ae2cceec26a28493.zip |
ci macOS: wait on *both* builds
At least I hope this will work as expected.
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/gh_actions.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ci/gh_actions.py b/ci/gh_actions.py index 8fe05b68..bbeb3b34 100755 --- a/ci/gh_actions.py +++ b/ci/gh_actions.py @@ -30,10 +30,11 @@ while time.time() < end_time: 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 |