From 38dc02aea5b9ab9586c55a05c021ed8b7a7527a1 Mon Sep 17 00:00:00 2001 From: Duncan Tourolle Date: Sun, 14 Jun 2026 17:03:15 +0200 Subject: [PATCH] fix CI --- .gitea/workflows/release.yaml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index e568dc5..9485899 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -79,22 +79,13 @@ jobs: REPO_NAME="${{ github.event.repository.name }}" GITEA_URL="${{ github.server_url }}" - # Prepare release body - RELEASE_BODY="JellyLMS Jellyfin Plugin ${{ steps.get_version.outputs.version }}\n\nSee attached files for plugin installation." - RELEASE_BODY_JSON=$(echo -n "${RELEASE_BODY}" | jq -Rs .) - # Create release using Gitea API + VERSION="${{ steps.get_version.outputs.version }}" RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ -H "Authorization: token ${GITEA_TOKEN}" \ -H "Content-Type: application/json" \ "${GITEA_URL}/api/v1/repos/${REPO_OWNER}/${REPO_NAME}/releases" \ - -d "{ - \"tag_name\": \"${{ steps.get_version.outputs.version }}\", - \"name\": \"Release ${{ steps.get_version.outputs.version }}\", - \"body\": ${RELEASE_BODY_JSON}, - \"draft\": false, - \"prerelease\": false - }") + -d "$(jq -n --arg tag "$VERSION" --arg name "Release $VERSION" --arg body "JellyLMS Jellyfin Plugin ${VERSION}. See attached files for plugin installation." '{tag_name: $tag, name: $name, body: $body, draft: false, prerelease: false}')") HTTP_CODE=$(echo "$RESPONSE" | tail -n1) BODY=$(echo "$RESPONSE" | sed '$d')