We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d84c48 commit d844fcdCopy full SHA for d844fcd
1 file changed
.github/workflows/telegram_notify.yml
@@ -3,22 +3,21 @@ name: Telegram notify on push
3
on:
4
push:
5
branches:
6
- - main # если у тебя другая ветка — поменяй
+ - main
7
8
jobs:
9
notify:
10
runs-on: ubuntu-latest
11
12
steps:
13
- name: Send message to Telegram
14
- - name: Send message to Telegram
15
run: |
16
curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_MONITOR_TOKEN }}/sendMessage" \
17
-d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
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