Skip to content

Commit 2f99acb

Browse files
committed
Fix telegram message newline charactor
1 parent 5b57596 commit 2f99acb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,16 @@ jobs:
8484
username=$(echo "$repo_url" | sed -E 's#.*github.com[:/](.*)/(.*).git#\1#')
8585
repo_name=$(echo "$repo_url" | sed -E 's#.*github.com[:/](.*)/(.*).git#\2#')
8686
architectures=("arm64-v8a" "armeabi-v7a" "universal" "x86" "x86_64")
87+
NL="%0A"
8788
88-
MESSAGE="🚀 *New Release Available! $$VERSION*\n\n"
89+
MESSAGE="🚀 *New Release Available! $VERSION*$NL$NL"
8990
9091
for arch in "${architectures[@]}"; do
9192
name="hviewer-$VERSION-$arch-release.apk"
92-
MESSAGE+="🔹 [$name](https://github.com/$username/$repo_name/releases/latest/download/$name)\n"
93+
MESSAGE+="🔹 [$name](https://github.com/$username/$repo_name/releases/latest/download/$name)$NL"
9394
done
95+
96+
echo $MESSAGE
9497
9598
curl -X POST "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage" \
9699
-d "chat_id=$TELEGRAM_CHAT_ID" \

0 commit comments

Comments
 (0)