Daily NFL Database Update #49
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: 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 |