Skip to content

Commit

Permalink
Envio de Notificação
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Sep 12, 2024
1 parent ae223a0 commit ca05f41
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/telegram-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Notify Telegram on Release

on:
release:
types: [published]

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send Telegram notification
uses: appleboy/telegram-notify@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

0 comments on commit ca05f41

Please sign in to comment.