mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-28 02:01:01 +00:00
feat: use quote instead of code block
This commit is contained in:
11
.github/workflows/beta.yml
vendored
11
.github/workflows/beta.yml
vendored
@@ -251,14 +251,8 @@ jobs:
|
||||
echo "Skipping APK upload to Discord due to SKIP_BUILDING_APK being set to true"
|
||||
fi
|
||||
|
||||
# Format commit messages for Telegram (HTML format with quote)
|
||||
telegram_commit_messages=$(echo "$COMMIT_LOG" | sed 's/%0A/\n/g' | while read -r line; do
|
||||
message=$(echo "$line" | sed -E 's/● (.*) ~(.*) \[֍\]\((.*)\)/● \1 ~\2 <a href="\3">֍<\/a>/')
|
||||
echo "$message"
|
||||
done)
|
||||
|
||||
# Wrap commit messages in a pre tag for quote effect
|
||||
telegram_commit_messages="<pre>${telegram_commit_messages}</pre>"
|
||||
# Wrap commit messages in a blockquote for proper quote effect
|
||||
telegram_commit_messages="<blockquote>${telegram_commit_messages}</blockquote>"
|
||||
|
||||
# Send Telegram message with APK upload
|
||||
if [ "$SKIP_BUILDING_APK" != "true" ]; then
|
||||
@@ -288,7 +282,6 @@ jobs:
|
||||
else
|
||||
echo "Skipping Telegram message and APK upload due to SKIP_BUILDING_APK being set to true"
|
||||
fi
|
||||
|
||||
env:
|
||||
COMMIT_LOG: ${{ env.COMMIT_LOG }}
|
||||
VERSION: ${{ env.VERSION }}
|
||||
|
||||
Reference in New Issue
Block a user