From 4f61f4cf2cbebe139809a95be48b0255e33e2d60 Mon Sep 17 00:00:00 2001 From: aayush262 <99584765+aayush2622@users.noreply.github.com> Date: Tue, 20 Feb 2024 10:53:57 +0530 Subject: [PATCH] fix: Github Actions --- .github/workflows/beta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index f9b675162b..a492d6a41d 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -21,7 +21,7 @@ jobs: - name: Download last SHA artifact - uses: actions/download-artifact@v4.1.2 + uses: dawidd6/action-download-artifact@v3 with: workflow: beta.yml name: last-sha @@ -92,7 +92,7 @@ jobs: shell: bash run: | #Discord - commit_messages=$(echo "$COMMIT_LOG" | sed 's/%0A/\n/g') + commit_messages=$(echo "$COMMIT_LOG" | sed 's/%0A/\n/g; s/^/\n/') # Truncate commit messages if they are too long max_length=1900 # Adjust this value as needed if [ ${#commit_messages} -gt $max_length ]; then @@ -104,7 +104,7 @@ jobs: #Telegram 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}" \ + -F "caption=Alpha-Build: ${VERSION}: ${commit_messages}" \ https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument env: