Skip to content

Commit

Permalink
fix environment name setting
Browse files Browse the repository at this point in the history
  • Loading branch information
alecananian committed May 6, 2024
1 parent f71ff86 commit f213e46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
jobs:
deploy:
runs-on: ubuntu-latest
environment: "${{ startsWith(github.ref, 'refs/tags/') }} === 'true' ? 'production' : 'development'"
environment: ${{ startsWith(github.ref, 'refs/tags/') && 'production' || 'development' }}
steps:
- name: Check out repo
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-login.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
environment: "${{ startsWith(github.ref, 'refs/tags/') }} === 'true' ? 'production' : 'development'"
environment: ${{ startsWith(github.ref, 'refs/tags/') && 'production' || 'development' }}
steps:
- name: Check out repo
uses: actions/checkout@v4
Expand Down

0 comments on commit f213e46

Please sign in to comment.