-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (33 loc) · 993 Bytes
/
main.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
name: Notification
on:
push:
branches:
- main
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and lint
run: |
echo "Build and lint"
- name: Notification Failure
if: failure()
uses: hunghg255/action-notifications@master
with:
telegram_bot_token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
telegram_chat_id: ${{ secrets.TELEGRAM_CHAT_ID }}
telegram_message_thread_id:
notifification:
needs: deploy
runs-on: ubuntu-latest
steps:
- name: Notification Success
uses: hunghg255/action-notifications@master
if: always()
with:
telegram_bot_token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
telegram_chat_id: ${{ secrets.TELEGRAM_CHAT_ID }}
telegram_message_thread_id: ${{ secrets.TELEGRAM_MESSAGE_THREAD_ID }}