From 77bbc87a1a18699bba0eaf8d4b97a3de1a6a2669 Mon Sep 17 00:00:00 2001 From: Duncan Tourolle Date: Sun, 11 Jan 2026 09:52:11 +0100 Subject: [PATCH] ymf --- .gitea/workflows/release.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 764d20f..540654e 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -78,8 +78,16 @@ jobs: REPO_NAME="${{ github.event.repository.name }}" GITEA_URL="${{ github.server_url }}" - # Prepare release body and create JSON payload + # Prepare release body in a file to avoid escaping issues MANIFEST_URL="${GITEA_URL}/${REPO_OWNER}/${REPO_NAME}/raw/branch/master/manifest.json" + cat > /tmp/release_body.txt << EOF + Jellypod Jellyfin Plugin ${{ steps.get_version.outputs.version }} + + See attached files for plugin installation. + + To install, add this repository URL to Jellyfin: + ${MANIFEST_URL} + EOF # Create release using Gitea API with jq for proper JSON RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ @@ -89,7 +97,7 @@ jobs: -d "$(jq -n \ --arg tag "${{ steps.get_version.outputs.version }}" \ --arg name "Release ${{ steps.get_version.outputs.version }}" \ - --arg body "Jellypod Jellyfin Plugin ${{ steps.get_version.outputs.version }}\n\nSee attached files for plugin installation.\n\nTo install, add this repository URL to Jellyfin:\n${MANIFEST_URL}" \ + --rawfile body /tmp/release_body.txt \ '{tag_name: $tag, name: $name, body: $body, draft: false, prerelease: false}' )")