Skip to content

Commit

Permalink
workflows/eval: Catch empty conclusion
Browse files Browse the repository at this point in the history
Sometimes the conclusion is empty when it's still
running/pending or so, which needs to be caught, otherwise it can exit
preemptively: #364308 (comment)

Co-Authored-By: Reno Dakota <[email protected]>
  • Loading branch information
infinisil and paparodeo committed Dec 18, 2024
1 parent 1a78192 commit 79dca9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/eval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 79dca9a

Please sign in to comment.