Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 64f705f

Browse files
authored
Resolve issue with new lines in message posted to Discord and Telegram
1 parent 36ffae9 commit 64f705f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build_and_sign_release_apk.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,11 @@ jobs:
354354
continue-on-error: true
355355
if: contains(github.event.inputs.announceOnMessengers, 'yes')
356356
run: |
357-
COMMIT_MSG=$(<./apk-arm/last_commits.txt)
358-
COMMIT_MSG="\n\n${COMMIT_MSG}\n"
357+
echo "" > commit_message.txt
358+
echo "" >> commit_message.txt
359+
cat ./apk-arm/last_commits.txt >> commit_message.txt
360+
echo "" >> commit_message.txt
361+
COMMIT_MSG=$(<./commit_message.txt)
359362
PAYLOAD=$(jq -n \
360363
--arg username "Kiwi Builder (Next)" \
361364
--arg content "A new build of Kiwi Browser Next (preview version) is available. This version will replace your currently installed Kiwi Browser (com.kiwibrowser.browser) <@&913196471787065344> - https://github.com/kiwibrowser/src.next/releases/tag/${{ github.run_id }} $COMMIT_MSG" \
@@ -366,8 +369,7 @@ jobs:
366369
continue-on-error: true
367370
if: contains(github.event.inputs.announceOnMessengers, 'yes')
368371
run: |
369-
COMMIT_MSG=$(<./apk-arm/last_commits.txt)
370-
COMMIT_MSG="\n\n${COMMIT_MSG}\n"
372+
COMMIT_MSG=$(<./commit_message.txt)
371373
PAYLOAD=$(jq -n \
372374
--arg text "A new build of Kiwi Browser Next (preview version) is available. Link: [${{ github.run_id }}](https://github.com/kiwibrowser/src.next/releases/tag/${{ github.run_id }}) $COMMIT_MSG" \
373375
--arg chat_id "@kiwibrowserbuilds" \

0 commit comments

Comments
 (0)