Skip to content

Commit a435041

Browse files
authored
chore: enhance AZURE_ENV_NAME logic for pull requests
1 parent 89ad5b4 commit a435041

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/azure-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
build:
4343
runs-on: ${{ fromJson(vars.ACTIONS_RUNNER_NAME || '["ubuntu-latest"]') }}
4444
env:
45-
AZURE_ENV_NAME: ${{ github.event.inputs.azd_environment_name || 'CICD' }}
45+
AZURE_ENV_NAME: ${{ github.event.inputs.azd_environment_name || (github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number)) || 'CICD' }}
4646
AZURE_LOCATION: ${{ github.event.inputs.azure_location || 'eastus' }}
4747

4848
steps:

0 commit comments

Comments
 (0)