Skip to content

Commit

Permalink
Fix DeploySubscriptionIds parameter type casting (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeler authored May 10, 2022
1 parent 799ad52 commit 229b144
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/0-everything.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ jobs:
-NvaPassword (ConvertTo-SecureString -String '${{secrets.NVA_PASSWORD}} '-AsPlainText -Force)
- name: Deploy Subscriptions
if: github.event.inputs.subscriptionIds != ''
if: github.event.inputs.subscriptionIds != null
run: |
./RunWorkflows.ps1 `
-DeploySubscriptionIds '${{github.event.inputs.subscriptionIds}}' `
-DeploySubscriptionIds @( ${{github.event.inputs.subscriptionIds}} ) `
-EnvironmentName '${{github.event.inputs.environmentName}}' `
-LoginServicePrincipalJson (ConvertTo-SecureString -String '${{secrets.ALZ_CREDENTIALS}}' -AsPlainText -Force) `
-GitHubRepo ${env:GITHUB_REPOSITORY} `
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/6-subscriptions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ jobs:
Install-Module powershell-yaml -Force
- name: Deploy Subscriptions
if: github.event.inputs.subscriptionIds != null
run: |
./RunWorkflows.ps1 `
-DeploySubscriptionIds '${{github.event.inputs.subscriptionIds}}' `
-DeploySubscriptionIds @( ${{github.event.inputs.subscriptionIds}} ) `
-EnvironmentName '${{github.event.inputs.environmentName}}' `
-LoginServicePrincipalJson (ConvertTo-SecureString -String '${{secrets.ALZ_CREDENTIALS}}' -AsPlainText -Force) `
-GitHubRepo ${env:GITHUB_REPOSITORY} `
Expand Down
2 changes: 1 addition & 1 deletion scripts/deployments/RunWorkflows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
If true, run the NVA hub network workflow.
.PARAMETER DeploySubscriptionIds
Comma separated list of subscription ids to run the subscription workflow against.
Comma separated list of quoted subscription ids to run the subscription workflow against.
.PARAMETER EnvironmentName
The name of the environment to run the workflow against.
Expand Down

0 comments on commit 229b144

Please sign in to comment.