From 87d04ee8345df847186e67024509deb0d21797c6 Mon Sep 17 00:00:00 2001 From: Bill Date: Sun, 26 Oct 2025 13:52:40 -0400 Subject: [PATCH] fix: remove jq dependency from Gitea release step Use grep and sed instead of jq to parse JSON response, as jq is not available on all Gitea runners. --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b3905c1..bda8a4a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -116,7 +116,7 @@ jobs: TAG_VERSION="${GITHUB_REF#refs/tags/}" # Create release via API - RELEASE_ID=$(curl -X POST \ + RESPONSE=$(curl -s -X POST \ -H "Accept: application/json" \ -H "Authorization: token $GITHUB_TOKEN" \ -H "Content-Type: application/json" \ @@ -130,7 +130,10 @@ jobs: "prerelease": false } EOF - )" | jq -r '.id') + )") + + # Extract release ID using grep and sed (no jq dependency) + RELEASE_ID=$(echo "$RESPONSE" | grep -o '"id":[0-9]*' | head -1 | grep -o '[0-9]*') echo "Created release with ID: $RELEASE_ID"