-
-
Notifications
You must be signed in to change notification settings - Fork 8
25 lines (23 loc) · 741 Bytes
/
tg.yml
File metadata and controls
25 lines (23 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Notify Telegram
on:
# discussion:
# types: [created, edited, answered]
discussion_comment:
types: [created]
jobs:
tg_alert:
runs-on: ubuntu-latest
steps:
- name: Send Telegram Notification
uses: cbrgm/telegram-github-action@v1
with:
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
to: ${{ secrets.TELEGRAM_CHAT_ID }}
disable-web-page-preview: true
message: |
🚀 New Discussion Comment!
Title: ${{ github.event.discussion.title }}
Comment URL: [ссылка](${{ github.event.comment.html_url }})
Author: ${{ github.event.comment.user.login }}
Body:
${{ github.event.comment.body }}