From 37f2bfe20f2d402e5c003bea11435a2aa95a094a Mon Sep 17 00:00:00 2001 From: ibo <41344259+sneazy-ibo@users.noreply.github.com> Date: Sun, 23 Jun 2024 06:57:36 +0200 Subject: [PATCH] fix: sed 's/[ ]*\[.*$//' message --- .github/workflows/beta.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 4818941e..d838400b 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -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 }}