Skip to content

Commit 7d65ff3

Browse files
committed
fix missing variable
1 parent 8277e0d commit 7d65ff3

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/end-to-end-test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,15 @@ jobs:
141141

142142
- name: Get Subscriptions
143143
run: |
144+
$deployAzureResources = "${{ matrix.deployAzureResources }}"
145+
if($deployAzureResources -eq "false") {
146+
Write-Host "Skipping subscription retrieval as deployAzureResources is set to false."
147+
"ARM_SUBSCRIPTION_ID=${{ vars.ARM_SUBSCRIPTION_ID }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
148+
exit 0
149+
}
150+
151+
$shortNamePrefix = "${{ matrix.ShortNamePrefix }}"
152+
144153
$subscriptionIDBootstrap = az account show --subscription "accelerator-bootstrap-modules-$shortNamePrefix-bootstrap" | ConvertFrom-Json | Select-Object -ExpandProperty id
145154
$subscriptionIDManagement = az account show --subscription "accelerator-bootstrap-modules-$shortNamePrefix-management" | ConvertFrom-Json | Select-Object -ExpandProperty id
146155
$subscriptionIDConnectivity = az account show --subscription "accelerator-bootstrap-modules-$shortNamePrefix-connectivity" | ConvertFrom-Json | Select-Object -ExpandProperty id
@@ -373,6 +382,11 @@ jobs:
373382

374383
- name: Clean Up Pre-Run
375384
run: |
385+
$deployAzureResources = "${{ matrix.deployAzureResources }}"
386+
if($deployAzureResources -eq "false") {
387+
Write-Host "Skipping cleanup as deployAzureResources is set to false."
388+
exit 0
389+
}
376390
377391
$uniqueId = $env:UNIQUE_ID
378392
@@ -530,6 +544,12 @@ jobs:
530544

531545
- name: Clean Up Post-Run
532546
run: |
547+
$deployAzureResources = "${{ matrix.deployAzureResources }}"
548+
if($deployAzureResources -eq "false") {
549+
Write-Host "Skipping cleanup as deployAzureResources is set to false."
550+
exit 0
551+
}
552+
533553
$uniqueId = $env:UNIQUE_ID
534554
535555
Remove-PlatformLandingZone `

0 commit comments

Comments
 (0)