-
Notifications
You must be signed in to change notification settings - Fork 29
48 lines (39 loc) · 1.5 KB
/
telegram-notifications.yml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Telegram Notifications
on:
issues:
types: [opened]
issue_comment:
types: [created]
jobs:
send_notification:
runs-on: ubuntu-latest
steps:
- name: Send Telegram Notification
if: ${{ github.event_name == 'issues' }}
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: html
disable_web_page_preview: true
message: |
🚨 New GitHub Issue 🚨
<b>Issue URL:</b> ${{ github.event.issue.html_url }}
<b>${{ github.actor }}</b> created a new issue.
<b>Issue Title:</b> ${{ github.event.issue.title }}
<blockquote>${{ github.event.issue.body }}</blockquote>
- name: Send Telegram Notification
if: ${{ github.event_name == 'issue_comment' }}
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: html
disable_web_page_preview: true
message: |
📝 New Comment on GitHub Issue 📝
<b>Comment URL:</b> ${{ github.event.comment.html_url }}
<b>Issue Title:</b> ${{ github.event.issue.title }}
<b>Issue URL:</b> ${{ github.event.issue.html_url }}
<b>${{ github.actor }}</b> commented:
<blockquote>${{ github.event.comment.body }}</blockquote>