mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-21 21:50:43 -06:00
also accept queued
This commit is contained in:
parent
1e84539947
commit
c426a6b55a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue