Skip to content

run main.py

run main.py #3932

Workflow file for this run

name: run main.py
on:
schedule:
- cron: '0 */2 * * *' # Runs in every 3 hours
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip3 install -r requirements.txt
- name: execute py script
run: python main.py config.json
- name: commit and push files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git commit -m "updated streams"
git push