-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.18 KB
/
notify-completed.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
name: notify completed
on:
workflow_run:
workflows: [ci]
types:
- completed
jobs:
on-success:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: send telegram message on push
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELE_BOT_CHANNEL }}
token: ${{ secrets.TELE_BOT_TOKEN }}
message: |
[${{ github.repository }}] 빌드가 [성공] 했습니다!
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
Author: https://github.com/${{github.actor}}
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- name: send telegram message on push
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELE_BOT_CHANNEL }}
token: ${{ secrets.TELE_BOT_TOKEN }}
message: |
[${{ github.repository }}] 빌드가 [실패] 했습니다...
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
Author: https://github.com/${{github.actor}}