Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ci): jq // treats false as falsy — runners always appeared busy

Louis Beaumontff8c8b759595
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 9d46ae8b9..d3dd7b171 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -88,7 +88,7 @@ jobs:
info=$(gh api repos/${{ github.repository }}/actions/runners \
--jq ".runners[] | select(.labels[].name == \"$label\") | {status: .status, busy: .busy}" 2>/dev/null || echo '{"status":"offline","busy":true}')
local status=$(echo "$info" | jq -r '.status // "offline"')
- local busy=$(echo "$info" | jq -r '.busy // true')
+ local busy=$(echo "$info" | jq -r 'if .busy then "true" else "false" end')
if [ "$status" = "online" ] && [ "$busy" = "false" ]; then
echo "available"
elif [ "$status" = "online" ]; then