Skip to content

Commit db98b0a

Browse files
committed
Testing for Telegram Monitor bot
1 parent d9c05c5 commit db98b0a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/telegram_notify.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ jobs:
1111

1212
steps:
1313
- name: Send message to Telegram
14+
- name: Send message to Telegram
1415
run: |
1516
curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_MONITOR_TOKEN }}/sendMessage" \
1617
-d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
17-
-d text="🚀 Новый push в репозиторий ${{ github.repository }}"
18+
-d parse_mode="HTML" \
19+
-d text="<b>User:</b> ${{ github.actor }} committed the repository <code>${{ github.repository }}</code>
20+
<b>Time:</b> $(date +'%Y-%m-%d %H:%M:%S')
21+
22+
<b>Commit header:</b> ${{ github.event.head_commit.message }}
23+
24+
<a href='${{ github.event.head_commit.url }}'>View Commit Details</a>"

0 commit comments

Comments
 (0)