fix: sed 's/[ ]*\[.*$//' message

This commit is contained in:
ibo
2024-06-23 06:57:36 +02:00
committed by GitHub
parent 9ed944febd
commit 37f2bfe20f

View File

@@ -231,11 +231,12 @@ jobs:
# -F "dantotsu_debug=@app/build/outputs/apk/google/alpha/app-google-alpha.apk" \
# ${{ secrets.DISCORD_WEBHOOK }}
# Send Telegram message and upload APK
# curl -F "chat_id=${{ secrets.TELEGRAM_CHANNEL_ID }}" \
# -F "document=@app/build/outputs/apk/google/alpha/app-google-alpha.apk" \
# -F "caption=Alpha-Build: ${VERSION}: ${commit_messages}" \
# https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument
# Send Telegram message without uploading APK
commit_messages=$(echo "$COMMIT_LOG" | sed 's/[ ]*\[.*$//' message)
curl -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \
-d "chat_id=${{ secrets.TELEGRAM_CHANNEL_ID }}" \
-d "text=Alpha-Build: ${VERSION}: ${commit_messages}"
env:
COMMIT_LOG: ${{ env.COMMIT_LOG }}