From c426a6b55a23bae76ab0ce3e525cc0083f05a794 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 19 Nov 2024 09:19:11 -0600 Subject: [PATCH] also accept queued --- pkgs/oizys/src/oizys/github.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/oizys/src/oizys/github.nim b/pkgs/oizys/src/oizys/github.nim index b9f0d2f..6eb2f64 100644 --- a/pkgs/oizys/src/oizys/github.nim +++ b/pkgs/oizys/src/oizys/github.nim @@ -93,7 +93,7 @@ proc getInProgressRun( while (now() - start) < timeoutDuration: let response = getGhApi(fmt"https://api.github.com/repos/daylinmorgan/oizys/actions/workflows/{workflow}/runs") let runs = fromJson(response.body, ListGhWorkflowResponse).workflow_runs - if runs[0].status == "in_progress": + if runs[0].status in ["in_progress", "queued"]: spinner.stop() # cleanup return (runs[0], true) sleep 500