diff --git a/.github/workflows/database-migration.yml b/.github/workflows/database-migration.yml index c98eb67..8402136 100644 --- a/.github/workflows/database-migration.yml +++ b/.github/workflows/database-migration.yml @@ -1,3 +1,5 @@ +name: Database migration + on: push: branches: @@ -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 @@ -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