Skip to content

Notify Telegram on Release #3

Notify Telegram on Release

Notify Telegram on Release #3

name: Notify Telegram on Release
on:
workflow_dispatch:
release:
types: [published]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send Telegram notification
uses: appleboy/telegram-action@master
with:
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
chat_id: ${{ secrets.TELEGRAM_CHAT_ID }}
message: |
Nova atualização publicada!
Data: {{ datetime.datetime.fromisoformat(github.event.release.created_at).strftime('%d-%m-%Y') }}
Versão: ${{ github.ref }}
Descrição: ${{ github.event.release.body }}
Link: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref }}
Link do Source: https://api.github.com/repos/${{ github.repository }}/zipball/${{ github.ref }}
#CHANGELOG_V1.X