From 64dc2d1b6c7f24feea93a1a4315b90d32c9324f5 Mon Sep 17 00:00:00 2001 From: ibo <41344259+sneazy-ibo@users.noreply.github.com> Date: Mon, 24 Jun 2024 06:13:01 +0200 Subject: [PATCH] final: test (#1) --- .github/workflows/beta.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 53ab7348..20ac9ed0 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -264,20 +264,15 @@ jobs: # Send Telegram message with APK upload if [ "$SKIP_BUILDING_APK" != "true" ]; then APK_PATH="app/build/outputs/apk/google/alpha/app-google-alpha.apk" - if [ -f "$APK_PATH" ]; then - response=$(curl -sS -f -X POST \ - "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument" \ - -F "chat_id=${{ secrets.TELEGRAM_CHANNEL_ID }}" \ - -F "document=@$APK_PATH" \ - -F "caption=New Alpha-Build dropped 🔥 + response=$(curl -sS -f -X POST \ + "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument" \ + -F "chat_id=${{ secrets.TELEGRAM_CHANNEL_ID }}" \ + -F "document=@$APK_PATH" \ + -F "caption=New Alpha-Build dropped 🔥 Commits: ${telegram_commit_messages} version: ${VERSION}" \ - -F "parse_mode=HTML") - else - echo "APK file not found at $APK_PATH" - exit 1 - fi + -F "parse_mode=HTML") else echo "Skipping Telegram message and APK upload due to SKIP_BUILDING_APK being set to true" fi