Skip to content

Daily NFL Database Update #47

Daily NFL Database Update

Daily NFL Database Update #47

Workflow file for this run

name: Daily NFL Database Update
on:
schedule:
- cron: '0 9 * * *' # Runs daily at 10 AM PST (9 AM UTC)
jobs:
run-daily-task:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install httpx asyncpg polars
- name: Run Daily Task
env:
DB_NAME: ${{ secrets.DB_NAME }}
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_HOST: ${{ secrets.DB_HOST }}
RAPIDAPI_KEY: ${{ secrets.RAPIDAPI_KEY }}
run: |
python nfl-update.py