-
Notifications
You must be signed in to change notification settings - Fork 22
34 lines (32 loc) · 967 Bytes
/
status_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
34
name: Bot Status Check
on:
schedule:
- cron: "*/15 * * * *"
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Initialize Checkout
uses: actions/checkout@v4
- name: SetUp Python3
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Clone the Repository
uses: actions/checkout@master
with:
repository: ${{ secrets.REPO_NAME }}
- name: Install Dependencies
run: |
pip install -q -U pip uv
uv pip install --system requests python-dotenv pytz pyrofork tgcrypto
- name: Run the UserClient Script
run: |
python3 main.py
env:
API_ID: ${{ secrets.API_ID }}
API_HASH: ${{ secrets.API_HASH }}
PYRO_SESSION: ${{ secrets.PYRO_SESSION }}
CONFIG_JSON_URL: ${{ secrets.CONFIG_JSON_URL }}
CONFIG_ENV_URL: ${{ secrets.CONFIG_ENV_URL }}