Skip to content

Commit 15ba65d

Browse files
committed
Fix bug preventing application code deployment to staging when 'Deploy to Staging' label is set on pull request
1 parent ded3230 commit 15ba65d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/_deploy-container.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
deploy:
3939
name: Deploy
4040
runs-on: ubuntu-24.04
41-
environment: ${{ inputs.azure_environment == 'prod' && 'production' || 'staging' }}
41+
environment: ${{ github.event_name != 'pull_request' && (inputs.azure_environment == 'prod' && 'production' || 'staging') || '' }}
4242
env:
4343
UNIQUE_PREFIX: ${{ vars.UNIQUE_PREFIX }}
4444
ENVIRONMENT: ${{ inputs.azure_environment }}

0 commit comments

Comments
 (0)