Skip to content

Commit bec6441

Browse files
fix: [ci-fix] skip staging job when secrets are not configured
The staging job fails because SUPABASE_STAGING_PROJECT_ID and SUPABASE_STAGING_DB_PASSWORD secrets don't exist yet. Add a guard to skip the job when the secret is empty, so CI passes until the staging Supabase project is created. Co-authored-by: Ona <no-reply@ona.com>
1 parent 8c8f110 commit bec6441

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy-migrations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
# PR check: reset staging DB then push migrations for real execution
1616
# ---------------------------------------------------------------------------
1717
staging:
18-
if: github.event_name == 'pull_request'
18+
if: github.event_name == 'pull_request' && secrets.SUPABASE_STAGING_PROJECT_ID != ''
1919
runs-on: ubuntu-latest
2020
# Only one staging validation at a time — later PRs queue behind earlier ones
2121
concurrency:

0 commit comments

Comments
 (0)