-
-
Notifications
You must be signed in to change notification settings - Fork 481
103 lines (87 loc) · 3.74 KB
/
Notify.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: Notify
on:
issues:
types: opened
issue_comment:
types: created
pull_request_target:
types: opened
discussion:
types: created
discussion_comment:
types: created
jobs:
tg-notify:
name: Notify
runs-on: ubuntu-latest
steps:
# issue_comment
- uses: colutius/Telegram-Msg@main
if: github.event_name == 'issue_comment'
with:
token: ${{ secrets.TELEGRAM_TOKEN }}
chatid: ${{ secrets.TELEGRAM_CHATID }}
button: true
message: |
📣 New ${{github.event_name}} in pot-desktop
💡Title: ${{ github.event.issue.title }}
👤User: ${{ github.event.sender.login }}
${{ github.event.comment.body }}
button_name: 👀前往查看👀
button_url: ${{ github.event.comment.html_url }}
# discussion_comment
- uses: colutius/Telegram-Msg@main
if: github.event_name == 'discussion_comment'
with:
token: ${{ secrets.TELEGRAM_TOKEN }}
chatid: ${{ secrets.TELEGRAM_CHATID }}
button: true
message: |
📣 New ${{github.event_name}} in pot-desktop
💡Title: ${{ github.event.discussion.title }}
👤User: ${{ github.event.sender.login }}
${{ github.event.comment.body }}
button_name: 👀前往查看👀
button_url: ${{ github.event.comment.html_url }}
# issues
- uses: colutius/Telegram-Msg@main
if: github.event_name == 'issues'
with:
token: ${{ secrets.TELEGRAM_TOKEN }}
chatid: ${{ secrets.TELEGRAM_CHATID }}
button: true
message: |
📣 New ${{github.event_name}} in pot-desktop
💡Title: ${{ github.event.issue.title }}
👤User: ${{ github.event.sender.login }}
${{ github.event.issue.body }}
button_name: 👀前往查看👀
button_url: ${{ github.event.issue.html_url }}
# discussion
- uses: colutius/Telegram-Msg@main
if: github.event_name == 'discussion'
with:
token: ${{ secrets.TELEGRAM_TOKEN }}
chatid: ${{ secrets.TELEGRAM_CHATID }}
button: true
message: |
📣 New ${{github.event_name}} in pot-desktop
💡Title: ${{ github.event.discussion.title }}
👤User: ${{ github.event.sender.login }}
${{ github.event.discussion.body }}
button_name: 👀前往查看👀
button_url: ${{ github.event.discussion.html_url }}
# pull_request
- uses: colutius/Telegram-Msg@main
if: github.event_name == 'pull_request_target'
with:
token: ${{ secrets.TELEGRAM_TOKEN }}
chatid: ${{ secrets.TELEGRAM_CHATID }}
button: true
message: |
📣 New ${{github.event_name}} in pot-desktop
💡Title: ${{ github.event.pull_request.title }}
👤User: ${{ github.event.sender.login }}
${{ github.event.pull_request.body }}
button_name: 👀前往查看👀
button_url: ${{ github.event.pull_request.html_url }}