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: Olivier 'reivilibre <oliverw@matrix.org>
This commit is contained in:
reivilibre 2025-03-13 14:52:00 +00:00 committed by GitHub
parent 929f19b472
commit a278c0d852
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

1
changelog.d/18211.misc Normal file
View file

@ -0,0 +1 @@
Fix detection of workflow failures in the release script.

View file

@ -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: