Have the release script warn if a workflow is queued for >15m
This commit is contained in:
@@ -596,6 +596,11 @@ def _wait_for_actions(gh_token: Optional[str]) -> None:
|
||||
if len(resp["workflow_runs"]) == 0:
|
||||
continue
|
||||
|
||||
# Warn the user if any workflows are still queued. They might need to fix something.
|
||||
if any(workflow["status"] == "queued" for workflow in resp["workflow_runs"]):
|
||||
_notify("Warning: at least one release workflow is still queued...")
|
||||
continue
|
||||
|
||||
if all(
|
||||
workflow["status"] != "in_progress" for workflow in resp["workflow_runs"]
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user