⚡️ Update Status. ⚡️ #15665
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |