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