Skip to content

.github/workflows/main.yml #71

.github/workflows/main.yml

.github/workflows/main.yml #71

Workflow file for this run

name: Run Python Script on Schedule
on:
schedule:
# runs at 5:30am every day
- cron: "30 5 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python environment
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run script
run: python main.py
- name: Commit
run: |
date > generated.txt
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Update data"
git push