Skip to content

Commit

Permalink
Fix migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
istarkov committed Jul 26, 2024
1 parent 0598cf9 commit 2223dec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/migrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest

environment:
name: ${{ endsWith(github.ref_name, '.staging') && 'postgres_production' || 'postgres_development' }}
name: ${{ (startsWith(github.ref_name, 'release') && endsWith(github.ref_name, '.staging')) && 'postgres_production' || 'postgres_development' }}

timeout-minutes: 20

Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
runs-on: ubuntu-latest

environment:
name: ${{ endsWith(github.ref_name, '.staging') && 'postgres_production' || 'postgres_development' }}
name: ${{ (startsWith(github.ref_name, 'release') && endsWith(github.ref_name, '.staging')) && 'postgres_production' || 'postgres_development' }}

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 2223dec

Please sign in to comment.