Skip to content
Snippets Groups Projects
Unverified Commit a278c0d8 authored by reivilibre's avatar reivilibre Committed by GitHub
Browse files

Fix detection of workflow failures in the release script. (#18211)


If one workflow is successful and one fails, currently that is reported
as success.

---------

Signed-off-by: default avatarOlivier 'reivilibre <oliverw@matrix.org>
parent 929f19b4
Branches
Tags
No related merge requests found
Fix detection of workflow failures in the release script.
\ No newline at end of file
...@@ -592,7 +592,7 @@ def _wait_for_actions(gh_token: Optional[str]) -> None: ...@@ -592,7 +592,7 @@ def _wait_for_actions(gh_token: Optional[str]) -> None:
if all( if all(
workflow["status"] != "in_progress" for workflow in resp["workflow_runs"] workflow["status"] != "in_progress" for workflow in resp["workflow_runs"]
): ):
success = ( success = all(
workflow["status"] == "completed" for workflow in resp["workflow_runs"] workflow["status"] == "completed" for workflow in resp["workflow_runs"]
) )
if success: if success:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment