-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (39 loc) · 1.02 KB
/
telegram-notification.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
44
45
46
47
# This workflow will send notification about new releases in selected telegram chats
name: Telegram notifications
on:
release:
types: [created]
push:
branches:
- main
- dev
- 'dev/**'
pull_request:
branches:
- main
- dev
- 'dev/**'
jobs:
telegram-bot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Update pip
run: |
python -m pip install --upgrade pip
- name: Clone repo, install requirements
run: |
git clone https://github.com/v1a0/telegram-notify-workflow.git ./telegram-notify-workflow
cd telegram-notify-workflow
python -m pip install -r requirements.txt
- name: Run bot
env:
secrets.TG_API_TOKEN: ${{ secrets.WF_API_TOKEN }}
secrets.TG_CHAT_IDS: ${{ secrets.WF_CHAT_IDS }}
run: |
cd telegram-notify-workflow
python bot.py