Skip to content

An open-source, faster Devin alternative

TypeScript

more debugging

Brian Reardon967a6816f0f7
diff --git a/.github/workflows/deploy-worker.yml b/.github/workflows/deploy-worker.yml
index 44f8f6ab..4d569d87 100644
--- a/.github/workflows/deploy-worker.yml
+++ b/.github/workflows/deploy-worker.yml
@@ -78,7 +78,7 @@ jobs:
# Get all worker private IPs from the control plane API
WORKER_IPS=$(curl -sf -H "X-API-Key: $API_KEY" http://localhost:8080/api/workers \
- | python3 -c "import json,sys;[print(a.split('/')[2].split(':')[0]) for w in json.load(sys.stdin) for a in [w.get('http_addr','')] if '//' in a]")
+ | jq -r ".[].http_addr" | sed "s|http://||;s|:.*||")
if [ -z "$WORKER_IPS" ]; then
echo "ERROR: No workers found"