also accept queued

This commit is contained in:
Daylin Morgan 2024-11-19 09:19:11 -06:00
parent 1e84539947
commit c426a6b55a
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

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