Skip to content

Commit 9051f44

Browse files
chore: enhance community release notifier with delimiter
1 parent 72e1f2f commit 9051f44

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ jobs:
4646
run: |
4747
TAG="$INPUT_TAG"
4848
URL="$INPUT_URL"
49+
50+
# Generate a random delimiter (hex string, safe and collision-resistant)
51+
DELIMITER=$(openssl rand -hex 16 || head -c 16 /dev/urandom | xxd -p -c 16)
52+
4953
# Escape problematic characters for MarkdownV2 (very conservative escaping)
5054
# We escape: _ * [ ] ( ) ~ ` > # + - = | { } . ! \
5155
BODY_SAFE=$(printf '%s' "$INPUT_BODY" | \
@@ -64,7 +68,11 @@ jobs:
6468
ANNOUNCE_SAFE="📢 Acode \[$TAG_SAFE\]($URL_SAFE) was just Released 🎉${SUFFIX}\\!"
6569
6670
echo "announce=$ANNOUNCE_SAFE" >> $GITHUB_OUTPUT
67-
echo "body_safe=$BODY_SAFE" >> $GITHUB_OUTPUT
71+
{
72+
echo "body_safe<<$DELIMITER"
73+
printf '%s\n' "$BODY_SAFE"
74+
echo "$DELIMITER"
75+
} >> $GITHUB_OUTPUT
6876
6977
# ────────────────────────────────────────────────
7078
# Truncate for Discord

0 commit comments

Comments
 (0)