Skip to content

Test bot release

Test bot release #22

Workflow file for this run

name: Notify on Releases
on:
release:
types:
- published
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send Telegram Notification
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_TO }}
TAG_NAME: ${{ github.event.release.tag_name }}
RELEASE_DESC: ${{github.event.release.body}}
run: |
curl -X POST https://api.telegram.org/bot${{ env.TELEGRAM_BOT_TOKEN }}/sendMessage \
-d chat_id=${{ env.TELEGRAM_CHAT_ID }} \
-d parse_mode="MarkdownV2" \
--data-urlencode text="
🚀 *Asv.Drones version $TAG_NAME Release Update!*
```
$RELEASE_DESC ${{ github.event.release.name }}
```
[Watch Release](${{ github.event.release.html_url }}) "