fix: single JSON-encode release body so newlines render (no literal \n)
This commit is contained in:
1 parent
cb91fbef6c
commit
e5de0b53d4
1 file changed
+1
-3
@@ -59,9 +59,7 @@ jobs:
|
||||
echo "*Automated release from Gitea Actions*"
|
||||
} > /tmp/release-body.md
|
||||
|
||||
BODY="$(jq -Rs '.' < /tmp/release-body.md)"
|
||||
|
||||
PAYLOAD="$(printf '%s' "$BODY" | jq -Rs '{tag_name: $v, name: $v, body: ., draft: false, prerelease: false}' --arg v "${VERSION}")"
|
||||
PAYLOAD="$(jq -Rs --arg v "${VERSION}" '{tag_name: $v, name: $v, body: ., draft: false, prerelease: false}' < /tmp/release-body.md)"
|
||||
|
||||
TOKEN="${GITEA_TOKEN:-${{ secrets.GITEA_TOKEN }}}"
|
||||
|
||||
|
||||
Reference in new issue
Block a user