-
Notifications
You must be signed in to change notification settings - Fork 26
34 lines (29 loc) · 1.07 KB
/
issue_notifications.yaml
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
name: Issue notifications
on:
issues:
types: [opened]
jobs:
telegram:
name: Telegram
runs-on: ubuntu-latest
steps:
- name: Send to notification chat
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_NOTIFICATIONS_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
disable_web_page_preview: true
format: markdown
message: |
New issue in *${{github.repository}}*: `${{github.event.issue.title}}`
${{github.server_url}}/${{github.repository}}/issues/${{github.event.issue.number}}
- name: Send to k8s operator chat
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_K8S_OPERATOR_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
disable_web_page_preview: true
format: markdown
message: |
New issue in *${{github.repository}}*: `${{github.event.issue.title}}`
${{github.server_url}}/${{github.repository}}/issues/${{github.event.issue.number}}