-
Notifications
You must be signed in to change notification settings - Fork 26
37 lines (33 loc) · 1.19 KB
/
pr_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
33
34
35
36
name: PR notifications
on:
pull_request_target:
branches:
- main
types:
- opened
jobs:
pr-notifications:
name: Send PR notifications
if: github.event.pull_request.draft == false
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 PR in *${{ github.repository }}*: `${{ github.event.pull_request.title }}`
${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.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 PR in *${{ github.repository }}*: `${{ github.event.pull_request.title }}`
${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.number }}