Skip to content

Commit 68dacb0

Browse files
committed
Configure AZURE_SUBSCRIPTION_ID env variable at workflow level
1 parent 884e11f commit 68dacb0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/azure-dev.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ env:
3232
# Add a unique suffix to the environment name for pull requests to avoid name conflicts
3333
AZURE_ENV_NAME: ${{ github.event.pull_request.number && format('{0}-pr{1}', vars.AZURE_ENV_NAME, github.event.pull_request.number) || vars.AZURE_ENV_NAME }}
3434
AZURE_LOCATION: ${{ vars.AZURE_LOCATION }}
35+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID || vars.AZURE_SUBSCRIPTION_ID }}
3536

3637
# Individual resource inclusion flags
3738
INCLUDE_API_MANAGEMENT: ${{ vars.INCLUDE_API_MANAGEMENT }}
@@ -136,8 +137,6 @@ jobs:
136137
name: Deploy to Azure
137138
needs: build-verify-package
138139
runs-on: ubuntu-latest
139-
env:
140-
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID || vars.AZURE_SUBSCRIPTION_ID }}
141140
outputs:
142141
azure-resource-group: ${{ steps.get-outputs.outputs.azure-resource-group }}
143142
azure-api-management-name: ${{ steps.get-outputs.outputs.azure-api-management-name }}
@@ -278,8 +277,6 @@ jobs:
278277
(needs.integration-tests.result == 'skipped' && needs.deploy.result == 'success')
279278
)
280279
runs-on: ubuntu-latest
281-
env:
282-
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID || vars.AZURE_SUBSCRIPTION_ID }}
283280

284281
steps:
285282
- name: Checkout code

0 commit comments

Comments
 (0)