Skip to content

Commit fc759ff

Browse files
committed
Install AzPolicyTest module if not already available
1 parent c4755e1 commit fc759ff

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • .github/actions/templates/policyDocGenerateWiki

.github/actions/templates/policyDocGenerateWiki/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ runs:
7070
Write-Output "Installing powershell-yaml module..."
7171
Install-Module -Name powershell-yaml -Force -Scope CurrentUser
7272
}
73-
73+
if (-not (Get-Module -ListAvailable -Name AzPolicyTest)) {
74+
Write-Output "Installing AzPolicyTest module..."
75+
Install-Module -Name AzPolicyTest -RequiredVersion 3.0.0 -Force -Scope CurrentUser
76+
}
7477
- name: Import Variables
7578
shell: pwsh # PowerShell Core
7679
env:

0 commit comments

Comments
 (0)