From: Vladimír Čunát Date: Tue, 3 Oct 2023 09:26:48 +0000 (+0200) Subject: ci macOS: wait on *both* builds X-Git-Tag: v6.0.5~17^2~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50eb5ca4871a6088fcf4b2c0ae2cceec26a28493;p=thirdparty%2Fknot-resolver.git ci macOS: wait on *both* builds At least I hope this will work as expected. --- diff --git a/ci/gh_actions.py b/ci/gh_actions.py index 8fe05b688..bbeb3b344 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