-
-
Notifications
You must be signed in to change notification settings - Fork 94
33 lines (31 loc) · 947 Bytes
/
updater.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
name: ⚡️ Update Status. ⚡️
on:
schedule:
- cron: "0 */2 * * *"
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: 🐍 Set up Python 3.9 🐍
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: 🌀 Clone the Repo 🌀
uses: actions/checkout@master
with:
repository: ${{ secrets.REPO_NAME }}
- name: 📀 Install dependencies. 📀
run: |
pip install python-decouple pytz telethon==1.37.0
pip install --upgrade pip
- name: 🏃♂️ Run the UserClient. 🏃♂️
run: |
python3 main.py
env:
APP_ID: ${{ secrets.APP_ID }}
API_HASH: ${{ secrets.API_HASH }}
BOTS: ${{ secrets.BOTS }}
SESSION: ${{ secrets.SESSION }}
CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
MESSAGE_ID: ${{ secrets.MESSAGE_ID }}