Skip to content

Commit 2e3553a

Browse files
committed
Github workflow to send Telegram Notifications
1 parent d6ea758 commit 2e3553a

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Telegram Commit Notification
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
telegram-commit-notification:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Send Telegram Commit Notification
13+
uses: appleboy/telegram-action@master
14+
with:
15+
to: ${{ secrets.TELEGRAM_TO }}
16+
token: ${{ secrets.TELEGRAM_TOKEN }}
17+
message: |
18+
📢 *Novo commit no repositório:* `${{ github.repository }}`
19+
20+
🧑 *Autor:* ${{ github.actor }}
21+
22+
📝 *Mensagem:* ${{ github.event.head_commit.message }}
23+
24+
🔗 [Ver commit](${{ github.event.head_commit.url }})
25+
format: markdown
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Telegram Release Notification
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
telegram-release-notification:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Send Telegram Release Notification
12+
uses: appleboy/telegram-action@master
13+
with:
14+
to: ${{ secrets.TELEGRAM_TO }}
15+
token: ${{ secrets.TELEGRAM_TOKEN }}
16+
message: |
17+
🎉 *Novo Release Publicado!*
18+
19+
📦 *Repositório:* `${{ github.repository }}`
20+
🏷️ *Versão:* `${{ github.event.release.tag_name }}`
21+
🧾 *Nome:* `${{ github.event.release.name }}`
22+
🗒️ *Descrição:*
23+
${{ github.event.release.body }}
24+
25+
🔗 [Ver Release](${{ github.event.release.html_url }})
26+
format: markdown

0 commit comments

Comments
 (0)