Skip to content

Commit c64fcec

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

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Telegram Notification
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
telegram-notification:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Send Telegram 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+
📝 Mensagem: ${{ github.event.head_commit.message }}
22+
🔗 [Ver commit](${{ github.event.head_commit.url }})
23+
format: markdown

0 commit comments

Comments
 (0)