Skip to content

Commit 5c84314

Browse files
committed
ci: fix literal \n\n in Discord embed description
1 parent 3ca2a17 commit 5c84314

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/discord-release-notification.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ jobs:
2020
RELEASE_TIMESTAMP: ${{ github.event.release.published_at }}
2121
REPO: ${{ github.repository }}
2222
run: |
23+
DESC=$(printf '%s\n\n%s' "$RELEASE_NAME" "$RELEASE_BODY")
2324
PAYLOAD=$(jq -n \
2425
--arg title "🚀 New Release: $RELEASE_TAG" \
25-
--arg desc "$RELEASE_NAME\n\n$RELEASE_BODY" \
26+
--arg desc "$DESC" \
2627
--arg url "$RELEASE_URL" \
2728
--arg author "$RELEASE_AUTHOR" \
2829
--arg repo "$REPO" \

0 commit comments

Comments
 (0)