workflows/eval: Catch empty conclusion

Sometimes the conclusion is empty when it's still
running/pending or so, which needs to be caught, otherwise it can exit
preemptively: https://github.com/NixOS/nixpkgs/pull/364308#issuecomment-2550179941

Co-Authored-By: Reno Dakota <paparodeo@proton.me>
This commit is contained in:
Silvan Mosberger
2024-12-18 04:58:44 +01:00
co-authored by Reno Dakota
parent 1a781926ce
commit 79dca9a646
+1 -1
View File
@@ -165,7 +165,7 @@ jobs:
runId=$(jq .id <<< "$run")
conclusion=$(jq -r .conclusion <<< "$run")
while [[ "$conclusion" == null ]]; do
while [[ "$conclusion" == null || "$conclusion" == "" ]]; do
echo "Workflow not done, waiting 10 seconds before checking again"
sleep 10
conclusion=$(gh api /repos/"$REPOSITORY"/actions/runs/"$runId" --jq '.conclusion')