Skip to content

Commit

Permalink
Resolve issue with new lines in message posted to Discord and Telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwibrowser committed Aug 13, 2023
1 parent 36ffae9 commit 64f705f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build_and_sign_release_apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,11 @@ jobs:
continue-on-error: true
if: contains(github.event.inputs.announceOnMessengers, 'yes')
run: |
COMMIT_MSG=$(<./apk-arm/last_commits.txt)
COMMIT_MSG="\n\n${COMMIT_MSG}\n"
echo "" > commit_message.txt
echo "" >> commit_message.txt
cat ./apk-arm/last_commits.txt >> commit_message.txt
echo "" >> commit_message.txt
COMMIT_MSG=$(<./commit_message.txt)
PAYLOAD=$(jq -n \
--arg username "Kiwi Builder (Next)" \
--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" \
Expand All @@ -366,8 +369,7 @@ jobs:
continue-on-error: true
if: contains(github.event.inputs.announceOnMessengers, 'yes')
run: |
COMMIT_MSG=$(<./apk-arm/last_commits.txt)
COMMIT_MSG="\n\n${COMMIT_MSG}\n"
COMMIT_MSG=$(<./commit_message.txt)
PAYLOAD=$(jq -n \
--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" \
--arg chat_id "@kiwibrowserbuilds" \
Expand Down

0 comments on commit 64f705f

Please sign in to comment.