Skip to content

Commit a278c0d

Browse files
authored
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>
1 parent 929f19b commit a278c0d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

changelog.d/18211.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix detection of workflow failures in the release script.

scripts-dev/release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def _wait_for_actions(gh_token: Optional[str]) -> None:
592592
if all(
593593
workflow["status"] != "in_progress" for workflow in resp["workflow_runs"]
594594
):
595-
success = (
595+
success = all(
596596
workflow["status"] == "completed" for workflow in resp["workflow_runs"]
597597
)
598598
if success:

0 commit comments

Comments
 (0)