Test bot release #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}) " |