Skip to content

Commit d844fcd

Browse files
committed
Testing for Telegram Monitor bot
1 parent 3d84c48 commit d844fcd

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/telegram_notify.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,21 @@ name: Telegram notify on push
33
on:
44
push:
55
branches:
6-
- main # если у тебя другая ветка — поменяй
6+
- main
77

88
jobs:
99
notify:
1010
runs-on: ubuntu-latest
1111

1212
steps:
1313
- name: Send message to Telegram
14-
- name: Send message to Telegram
1514
run: |
1615
curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_MONITOR_TOKEN }}/sendMessage" \
1716
-d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
1817
-d parse_mode="HTML" \
1918
-d text="<b>User:</b> ${{ github.actor }} committed the repository <code>${{ github.repository }}</code>
2019
<b>Time:</b> $(date +'%Y-%m-%d %H:%M:%S')
21-
20+
2221
<b>Commit header:</b> ${{ github.event.head_commit.message }}
23-
22+
2423
<a href='${{ github.event.head_commit.url }}'>View Commit Details</a>"

0 commit comments

Comments
 (0)