Skip to content

Commit 338da66

Browse files
chore: fix escaping in community release notifier CI, and SUPPRESS_EMBEDS on discord
1 parent 611008c commit 338da66

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/community-release-notifier.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
TAG_SAFE=$(printf '%s' "$TAG" | sed 's/[_*[\]()~`>#+=|{}.!\\-]/\\&/g')
5858
5959
if [[ "$TAG" == *"-nightly"* ]]; then
60-
SUFFIX=" \\(Nightly Release\\)"
60+
SUFFIX=" \(Nightly Release\)"
6161
SUFFIXPLAIN=" (Nightly Release)"
6262
else
6363
SUFFIX=""
@@ -75,7 +75,7 @@ jobs:
7575
} >> $GITHUB_OUTPUT
7676
7777
# Plain (MD) Announcement for Discord
78-
ANNOUNCE_PLAIN="📢 Acode [$TAG]($URL) was just Released 🎉${SUFFIXPLAIN}!"
78+
ANNOUNCE_PLAIN="📢 Acode [$TAG](<$URL>) was just Released 🎉${SUFFIXPLAIN}!"
7979
echo "announce_plain=$ANNOUNCE_PLAIN" >> $GITHUB_OUTPUT
8080
{
8181
echo "body_plain<<$DELIMITER"
@@ -104,6 +104,7 @@ jobs:
104104
with:
105105
webhook-url: ${{ secrets.DISCORD_WEBHOOK_RELEASE_NOTES }}
106106
content: ${{ steps.truncate-discord.outputs.string }}
107+
flags: 4 # 1 << 2 - SUPPRESS_EMBEDS!
107108

108109
# ────────────────────────────────────────────────
109110
# Telegram notification — MarkdownV2 + no link preview

0 commit comments

Comments
 (0)