From 79dca9a646194f2413a572f11224fcdf201eed17 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Wed, 18 Dec 2024 03:58:43 +0100 Subject: [PATCH] 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 --- .github/workflows/eval.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/eval.yml b/.github/workflows/eval.yml index bac9394500ac6..97130b8be323f 100644 --- a/.github/workflows/eval.yml +++ b/.github/workflows/eval.yml @@ -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')