From 92301ba8ce8bcdeecea9e574652bd7aa09b636a8 Mon Sep 17 00:00:00 2001 From: Bharat Dev Burman Date: Mon, 24 Oct 2022 23:57:49 +0530 Subject: [PATCH] remove usage of appleboy/telegram-action replaced with a simple multipart form data query using cURL --- .github/workflows/Recovery Build.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/Recovery Build.yml b/.github/workflows/Recovery Build.yml index cbe41ccfb..b15ba700c 100644 --- a/.github/workflows/Recovery Build.yml +++ b/.github/workflows/Recovery Build.yml @@ -174,9 +174,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Send build - uses: appleboy/telegram-action@master - with: - to: ${{ secrets.CHANNEL_ID }} - token: ${{ secrets.TELEGRAM_BOT_TOKEN }} - message: Build successful for ${{ github.event.inputs.DEVICE_NAME }} - document: workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ github.event.inputs.BUILD_TARGET }}.img + run: | + curl -F "chat_id=${{ secrets.CHANNEL_ID }}" -F text="Build successful for ${{ github.event.inputs.DEVICE_NAME }}" https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage + curl -F "chat_id=${{ secrets.CHANNEL_ID }}" -F document=@workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ github.event.inputs.BUILD_TARGET }}.img https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument