Skip to content

Update Database

Update Database #292

Workflow file for this run

name: Update Database
on:
workflow_dispatch:
schedule:
# At 2 AM UTC from Tuesday to Saturday (9 PM EST / 10 PM EDT Monday-Friday)
- cron: '0 2 * * 2-6'
# At 10 PM UTC on Saturday (5 PM EST / 6 PM EDT Saturday)
- cron: '0 23 * * 6'
# At 10 PM UTC on Sunday (5 PM EST / 6 PM EDT Sunday)
- cron: '0 23 * * 0'
jobs:
update_database:
runs-on: ubuntu-latest
env:
SUPABASE_API_KEY: ${{ secrets.SUPABASE_API_KEY }}
SUPABASE_API_URL: ${{ secrets.SUPABASE_API_URL }}
NYT_S_TOKEN: ${{ secrets.NYT_S_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip'
- run: pip install -r scripts/requirements.txt
- name: Update database
run: python -u scripts/update_db.py