File tree Expand file tree Collapse file tree
.github/actions/templates/policyDocGenerateWiki Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363 with :
6464 fetch-depth : 0
6565
66- - name : ' Install PowerShell-Yaml Module '
66+ - name : ' Install PowerShell Modules '
6767 shell : pwsh
6868 run : |
6969 if (-not (Get-Module -ListAvailable -Name powershell-yaml)) {
9696 git config --global user.name "${inputs.gitUserName}"
9797 git config --global user.email "${inputs.gitUserEmail}"
9898 #git config --global http.extraheader "AUTHORIZATION: basic $token"
99- - name : Install AzPolicyTest module
100- shell : pwsh
101- run : |
102- Install-Module -Name AzPolicyTest -RequiredVersion 3.0.0 -Force -Scope CurrentUser
99+
103100 - name : Generate Wiki
104101 id : generate_wiki
105102 continue-on-error : true
Original file line number Diff line number Diff line change @@ -21,6 +21,13 @@ if (-not (Get-Module -ListAvailable -Name powershell-yaml)) {
2121}
2222Import-Module powershell- yaml
2323
24+ # Import AzPolicyTest module for YAML parsing
25+ if (-not (Get-Module - ListAvailable - Name AzPolicyTest)) {
26+ Write-Verbose " Installing AzPolicyTest module..."
27+ Install-Module - Name AzPolicyTest - RequiredVersion 3.0 .0 - Force - Scope CurrentUser
28+ }
29+ Import-Module AzPolicyTest
30+
2431# Read and parse YAML file
2532Write-Output " Reading configuration from: $configFilePath "
2633$yamlContent = Get-Content - Path $configFilePath - Raw
You can’t perform that action at this time.
0 commit comments