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 }}