]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ci macOS: wait on *both* builds
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 3 Oct 2023 09:26:48 +0000 (11:26 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 3 Oct 2023 09:30:43 +0000 (11:30 +0200)
At least I hope this will work as expected.

ci/gh_actions.py

index 8fe05b688298da427636d4fec6295072fd5700af..bbeb3b34492d05fbb4c4ec9374b1751d112bbbbc 100755 (executable)
@@ -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