Skip to content

Commit

Permalink
remove usage of appleboy/telegram-action
Browse files Browse the repository at this point in the history
replaced with a simple multipart form data query using cURL
  • Loading branch information
crazo7924 authored Oct 24, 2022
1 parent 983f351 commit 92301ba
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/Recovery Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 92301ba

Please sign in to comment.