Skip to content

Commit 4fc3f05

Browse files
Update community-release-notifier.yml
Mobile edits πŸ˜ΆπŸ™πŸ™ƒ
1 parent 67cb0a2 commit 4fc3f05

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

β€Ž.github/workflows/community-release-notifier.ymlβ€Ž

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ jobs:
5858
5959
if [[ "$TAG" == *"-nightly"* ]]; then
6060
SUFFIX=" \\(Nightly Release\\)"
61+
SUFFIXPLAIN=" (Nightly Release)"
6162
else
6263
SUFFIX=""
64+
SUFFIXPLAIN=""
6365
fi
6466
6567
# Announcement line β€” also escape for safety
@@ -72,6 +74,15 @@ jobs:
7274
echo "$DELIMITER"
7375
} >> $GITHUB_OUTPUT
7476
77+
# Plain (MD) Announcement for Discord
78+
ANNOUNCE_PLAIN="πŸ“’ Acode [$TAG]($URL) was just Released πŸŽ‰${SUFFIX_PLAIN}!"
79+
echo "announce_plain=$ANNOUNCE_PLAIN" >> $GITHUB_OUTPUT
80+
{
81+
echo "body_plain<<$DELIMITER"
82+
printf '%s\n' "$INPUT_BODY"
83+
echo "$DELIMITER"
84+
} >> $GITHUB_OUTPUT
85+
7586
# ────────────────────────────────────────────────
7687
# Truncate for Discord
7788
# ────────────────────────────────────────────────
@@ -81,9 +92,9 @@ jobs:
8192
with:
8293
maxLength: 2000
8394
stringToTruncate: |
84-
${{ steps.vars.outputs.announce }}
95+
${{ steps.vars.outputs.announce_plain }}
8596
86-
${{ steps.vars.outputs.body_safe }}
97+
${{ steps.vars.outputs.body_plain }}
8798
8899
# ────────────────────────────────────────────────
89100
# Discord notification

0 commit comments

Comments
Β (0)