Skip to content

Commit

Permalink
Fix destroy file trigger (#34)
Browse files Browse the repository at this point in the history
* Fix destroy file trigger

* Use proper types
  • Loading branch information
jaredfholgate authored Sep 6, 2024
1 parent 6ae95ca commit 9ce226b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/tests/scripts/destroy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ param (
$bootstrapDirectoryPath = "$($env:TARGET_FOLDER)/bootstrap/local/alz/$versionControlSystem"
Write-Host "Bootstrap Directory Path: $bootstrapDirectoryPath"

if(Test-Path -Path "$bootstrapDirectoryPath/override.tfvars") {
if(Test-Path -Path "$bootstrapDirectoryPath/override.tfvars.json") {
Write-Host "Bootstrap tfvars Exists"
} else {
Write-Host "Bootstrap tfvars does not exist, so there is nothing to clean up. Exiting now."
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/end-to-end-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ jobs:
$Inputs["create_bootstrap_resources_in_azure"] = $localDeployAzureResources
}
$Inputs["apply_approvers"] = ""
$Inputs["apply_approvers"] = @()
$Inputs["root_parent_management_group_id"] = ""
$Inputs["subscription_id_connectivity"] = "${{ vars.ARM_SUBSCRIPTION_ID }}"
$Inputs["subscription_id_identity"] = "${{ vars.ARM_SUBSCRIPTION_ID }}"
Expand Down Expand Up @@ -278,7 +278,8 @@ jobs:
$Inputs["ConnectivitySubscriptionId"] = "${{ vars.ARM_SUBSCRIPTION_ID }}"
}
$json = $Inputs | ConvertTo-Json -Depth 100 | Out-File -FilePath inputs.json -Encoding utf8 -Force
$json = ConvertTo-Json $Inputs -Depth 100
$json | Out-File -FilePath inputs.json -Encoding utf8 -Force
shell: pwsh

Expand Down

0 comments on commit 9ce226b

Please sign in to comment.