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