Skip to content

Run main.py

Run main.py #1050

Workflow file for this run

name: Run main.py
on:
schedule:
- cron: '0 */6 * * *' # Every 6 hours
workflow_dispatch: # Manual trigger
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo content
uses: actions/checkout@v2 # checkout the repository content
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11.3' # install the python version needed
- name: Install Python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Execute Python script # run main.py
env:
BOT_API_TOKEN : ${{ secrets.BOT_API_TOKEN }}
CHAT_ID : ${{ secrets.CHAT_ID }}
SERVER0_API : ${{ secrets.SERVER0_API }}
SERVER0_USERNAME : ${{ secrets.SERVER0_USERNAME }}
SERVER0_PASSWORD : ${{ secrets.SERVER0_PASSWORD }}
SERVER0_CAPTION : ${{ secrets.SERVER0_CAPTION }}
run: python3 main.py