Skip to content

Commit fc47ec2

Browse files
committed
feat: add GitHub Actions workflow for sending Telegram messages on push
1 parent 969f3aa commit fc47ec2

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Telegram message'
2+
on: [push]
3+
4+
jobs:
5+
send-telegram-message:
6+
name: Telegram message
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Telegram message
10+
uses: appleboy/[email protected]
11+
with:
12+
to: ${{ secrets.TELEGRAM_TO }}
13+
token: ${{ secrets.TELEGRAM_TOKEN }}
14+
format: markdown
15+
disable_web_page_preview: true
16+
message: |
17+
*New Push* 📤
18+
19+
*Author:* [@${{ github.actor }}](https://github.com/${{ github.actor }})
20+
*Repository:* [${{ github.repository }}](https://github.com/${{ github.repository }})
21+
*Branch:* [${{ github.ref_name }}](https://github.com/${{ github.repository }}/tree/${{ github.ref_name }})
22+
23+
*Commit Message:*
24+
`${{ github.event.head_commit.message }}`
25+
26+
[View Changes](https://github.com/${{ github.repository }}/commit/${{ github.sha }})

0 commit comments

Comments
 (0)