-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (64 loc) · 2.63 KB
/
telegram-notify-issues.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
name: Telegram Message on Issues
on:
issues:
types:
- opened
- closed
- reopened
jobs:
build:
name: Notify Issues
runs-on: ubuntu-latest
steps:
- name: send telegram message on issue opened
uses: appleboy/telegram-action@master
if: ${{ github.event.action == 'opened' }}
with:
to: ${{ secrets.TELEGRAM_TO_GROUP }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: markdown
message: |
*¡Actualizaciones desde GitHub!*
*${{ github.actor }}* ha creado una nueva issue:
Issue: `${{ github.event.issue.title }}`
Repositorio: `${{ github.repository }}`
Puedes ver los cambios [aquí](${{ github.event.issue.html_url }})
- name: send telegram message on issue closed
uses: appleboy/telegram-action@master
if: ${{ github.event.action == 'closed' }}
with:
to: ${{ secrets.TELEGRAM_TO_GROUP }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: markdown
message: |
*¡Actualizaciones desde GitHub!*
*${{ github.actor }}* ha cerrado una issue:
Issue: `${{ github.event.issue.title }}`
Repositorio: `${{ github.repository }}`
Puedes ver los cambios [aquí](${{ github.event.issue.html_url }})
- name: send telegram message on issue reopened
uses: appleboy/telegram-action@master
if: ${{ github.event.action == 'reopened' }}
with:
to: ${{ secrets.TELEGRAM_TO_GROUP }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: markdown
message: |
*¡Actualizaciones desde GitHub!*
*${{ github.actor }}* ha reabierto una issue:
Issue: `${{ github.event.issue.title }}`
Repositorio: `${{ github.repository }}`
Puedes ver los cambios [aquí](${{ github.event.issue.html_url }})
- name: send telegram message when issue have new comments
uses: appleboy/telegram-action@master
if: ${{ github.event.action == 'commented' }}
with:
to: ${{ secrets.TELEGRAM_TO_GROUP }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: markdown
message: |
*¡Actualizaciones desde GitHub!*
*${{ github.actor }}* ha comentado en una issue:
Issue: `${{ github.event.issue.title }}`
Repositorio: `${{ github.repository }}`
Puedes ver los cambios [aquí](${{ github.event.issue.html_url }})