Skip to content

Commit 2c36e68

Browse files
authored
Create telegram_notify.yml
Attempting to create GitHub Actions to forward notifications to Telegram
1 parent c4814dc commit 2c36e68

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Telegram notify on push
2+
3+
on:
4+
push:
5+
branches:
6+
- main # если у тебя другая ветка — поменяй
7+
8+
jobs:
9+
notify:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Send message to Telegram
14+
run: |
15+
curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN }}/sendMessage" \
16+
-d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
17+
-d text="🚀 Новый push в репозиторий ${{ github.repository }}"

0 commit comments

Comments
 (0)