File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,12 @@ jobs:
271271 echo "Skipping APK upload to Discord due to SKIP_BUILD being set to true"
272272 fi
273273
274- telegram_commit_messages=$(echo "$COMMIT_LOG" | sed 's/%0A/\n/g' | while read -r line; do
274+ COMMIT_LOG=$(cat commit_log.txt)
275+ if [ ${#COMMIT_LOG} -gt 1024 ]; then
276+ COMMIT_LOG="${COMMIT_LOG:0:900}... (truncated)"
277+ fi
278+ TRUNCATED_COMMIT_LOG="$COMMIT_LOG"
279+ telegram_commit_messages=$(echo "$TRUNCATED_COMMIT_LOG" | sed 's/%0A/\n/g' | while read -r line; do
275280 message=$(echo "$line" | sed -E 's/● (.*) ~(.*) \[֍\]\((.*)\)/● \1 ~\2 <a href="\3">֍<\/a>/')
276281 message=$(echo "$message" | sed -E 's/\[#([0-9]+)\]\((https:\/\/github\.com\/[^)]+)\)/<a href="\2">#\1<\/a>/g')
277282 echo "$message"
You can’t perform that action at this time.
0 commit comments