Skip to content

Commit 03f19a8

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

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
22+
Mensagem: ${{ github.event.head_commit.message }}
23+
24+
[Ver commit](${{ github.event.head_commit.url }})

0 commit comments

Comments
 (0)