summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2023-10-03 11:26:48 +0200
committerVladimír Čunát <vladimir.cunat@nic.cz>2023-10-03 11:30:43 +0200
commit50eb5ca4871a6088fcf4b2c0ae2cceec26a28493 (patch)
tree25d11e218be1f4436ba851a7dc3ff90a9ea96552 /ci
parentci macOS: update Knot DNS (diff)
downloadknot-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-xci/gh_actions.py9
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