Skip to content

Add CI pipeline for automatic database updates - #6

Open
shadil-rayyan wants to merge 1 commit into
hitarth-gg:mainfrom
shadil-rayyan:feat/db-ci
Open

Add CI pipeline for automatic database updates#6
shadil-rayyan wants to merge 1 commit into
hitarth-gg:mainfrom
shadil-rayyan:feat/db-ci

Conversation

@shadil-rayyan

Copy link
Copy Markdown

Adds a GitHub Actions workflow (db-update.yml) that:\n- Runs weekly (Sunday midnight) or manually via workflow_dispatch\n- Clones the upstream problem data repo\n- Spins up a PostgreSQL service container\n- Runs the Go merger to scrape CSV data → local PG → Supabase\n- Updates the app_metadata.last_db_update timestamp\n\nAlso adds a --ci flag to merger/main.go to run scrape + sync in sequence.\n\nAfter merge, add these repo secrets:\n- SUPABASE_DATABASE_URL — your Supabase session pooler connection string\n\nCloses #2

Adds a GitHub Actions workflow that:
- Runs weekly or on manual dispatch
- Clones the upstream problem data repository
- Spins up a PostgreSQL service container
- Runs the Go merger to scrape CSV data into local PG
- Syncs to Supabase remote database
- Updates the app_metadata.last_db_update timestamp

Closes hitarth-gg#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant