File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 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" | \
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
You can’t perform that action at this time.
0 commit comments