-
-
Notifications
You must be signed in to change notification settings - Fork 13
37 lines (34 loc) · 1.19 KB
/
notification.yml
File metadata and controls
37 lines (34 loc) · 1.19 KB
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
name: Notify
on:
issues:
types: [reopened, opened]
issue_comment:
types: [created, deleted]
jobs:
issue_created:
if: github.event_name == 'issues'
name: Notifying repo holder
runs-on: ubuntu-latest
steps:
- name: send telegram message on push
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_CHAT }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
${{ github.actor }} created an issue: ${{ github.event.issue.title }}
See: https://github.com/H2xDev/GodotVMF/issues/${{ github.event.issue.number }}
issue_commented:
if: github.event_name == 'issue_comment'
name: Commented issue
runs-on: ubuntu-latest
steps:
- name: send telegram message on push
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_CHAT }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
${{ github.actor }} left a comment:
${{ github.event.comment.body }}
https://github.com/H2xDev/GodotVMF/issues/${{ github.event.issue.number }}#issuecomment-${{ github.event.comment.id }}