-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.2 KB
/
tele.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
name: Telegram
on:
push:
branches: [main, master]
pull_request:
types: [opened, reopened, closed]
branches: [main, master]
jobs:
job:
if: ${{ !github.event.pull_request.merged }}
name: Build
runs-on: ubuntu-latest
steps:
- name: send telegram message on push
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.CHATID }}
token: ${{ secrets.BOTTOKEN }}
message: |
${{ github.actor }} created #${{github.event.number}} on ${{ github.repository }}:
${{ github.event.head_commit.message }}
PR review: ${{github.event.pull_request.title}}
${{github.event.pull_request.body}}
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
merge:
if: ${{ github.event.pull_request.merged }}
name: Build
runs-on: ubuntu-latest
steps:
- name: send telegram message on push
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.CHATID }}
token: ${{ secrets.BOTTOKEN }}
message: |
${{ github.actor }} merged #${{github.event.number}} on ${{ github.repository }}