Skip to content

Commit

Permalink
fixup! Migration workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Perdolique committed Aug 23, 2024
1 parent dc96a98 commit baeee6f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/database-migration.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Database migration

on:
push:
branches:
Expand All @@ -12,7 +14,7 @@ on:

jobs:
database-migration-staging:
name: Database migration (staging)
name: Staging
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
environment: production
Expand All @@ -31,7 +33,7 @@ jobs:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: npm run db:migrate
database-migration-production:
name: Database migration (production)
name: Production
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
environment: staging
Expand Down

0 comments on commit baeee6f

Please sign in to comment.