Skip to content

Commit

Permalink
environment be able to pick up if it is staging or production
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhouweling committed Nov 4, 2024
1 parent 7d9ca7d commit 27af0d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: ${{ github.event.pull_request.base.ref == 'main' && 'production' || 'staging' }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
timeout-minutes: 60
steps:
Expand Down

0 comments on commit 27af0d3

Please sign in to comment.