Skip to content

Commit

Permalink
Topic id for tg
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmechinmoy authored Nov 20, 2024
1 parent 13e5722 commit e56358c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ jobs:
env:
BOT_ID: ${{ secrets.TELEGRAM_BOT_ID }}
CHANNEL_ID: ${{ secrets.TELEGRAM_CHANNEL_ID }}
THREAD_ID: ${{ secrets.TELEGRAM_THREAD_ID }}
run: |
regex='s/[\_\*\[\]\(\)\~\`\>\#\+\-\=\|\{\}\.\!]/\\&/g'
message=$(printf "*Nightly Release*\n${{ env.COMMIT }}" | sed -E "$regex")
curl -F "chat_id=${{ env.CHANNEL_ID }}" \
-F "message_thread_id=${{ env.THREAD_ID }}" \
-F "document=@app/build/${{ env.VERSION }}.apk" \
-F "caption=${message}" \
-F "parse_mode=MarkdownV2" \
Expand Down

0 comments on commit e56358c

Please sign in to comment.