From ca176c4c9b01cf70c199022b1aa32255725cc1bc Mon Sep 17 00:00:00 2001 From: Vantz Stockwell Date: Sat, 21 Feb 2026 14:04:32 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20Remove=20jq=20dependency=20from=20CI=20?= =?UTF-8?q?=E2=80=94=20parse=20release=20ID=20with=20grep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/build-companion.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build-companion.yml b/.gitea/workflows/build-companion.yml index b9657ee..e8a28fc 100644 --- a/.gitea/workflows/build-companion.yml +++ b/.gitea/workflows/build-companion.yml @@ -49,12 +49,20 @@ jobs: REPO="vantzs/corrosion-admin-panel" API_URL="https://git.corrosionmgmt.com/api/v1" - # Create release - RELEASE_ID=$(curl -s -X POST \ + # Create release (parse ID without jq) + RESPONSE=$(curl -s -X POST \ -H "Authorization: token ${RELEASE_TOKEN}" \ -H "Content-Type: application/json" \ -d "{\"tag_name\": \"${VERSION}\", \"name\": \"Companion Agent ${VERSION}\", \"body\": \"Companion Agent release ${VERSION}\", \"draft\": false, \"prerelease\": false}" \ - "${API_URL}/repos/${REPO}/releases" | jq -r '.id') + "${API_URL}/repos/${REPO}/releases") + RELEASE_ID=$(echo "$RESPONSE" | grep -o '"id":[0-9]*' | head -1 | grep -o '[0-9]*') + + if [ -z "$RELEASE_ID" ]; then + echo "ERROR: Failed to create release. Response:" + echo "$RESPONSE" + exit 1 + fi + echo "Release created with ID: ${RELEASE_ID}" # Upload Linux binary curl -s -X POST \