-
Notifications
You must be signed in to change notification settings - Fork 29
39 lines (34 loc) · 1.18 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
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/[email protected]
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
🚨 New GitHub Issue 🚨
Repository: ${{ github.repository }}
Action: ${{ github.event_name }}
Issue Title: ${{ github.event.issue.title }}
Issue URL: ${{ github.event.issue.html_url }}
- name: Send Telegram Notification
if: ${{ github.event_name == 'issue_comment' }}
uses: appleboy/[email protected]
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
📝 New Comment on GitHub Issue 📝
Repository: ${{ github.repository }}
Action: ${{ github.event_name }}
Comment Body: ${{ github.event.comment.body }}
Issue URL: ${{ github.event.issue.html_url }}