ymf
This commit is contained in:
parent
d4842c2361
commit
77bbc87a1a
@ -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}'
|
||||
)")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user