Skip to content

Commit

Permalink
Improve warning output for modified policies to list each file indivi…
Browse files Browse the repository at this point in the history
…dually
  • Loading branch information
Brunoga-MS committed Jan 31, 2025
1 parent daec97d commit 3f1d26c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions-pester/Test-ModifiedPolicies.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ Describe 'UnitTest-ModifiedPolicies' {

$ModifiedFiles = @(Get-PolicyFiles -DiffFilter "M")
if ($ModifiedFiles -ne $null) {
Write-Warning "These are the modified policies: $($ModifiedFiles)"
Write-Warning "These are the modified policies:"
foreach ($ModifiedFile in $ModifiedFiles) {
Write-Warning "$ModifiedFile"
}
}
else {
Write-Information "There are no modified policies"
Expand Down

0 comments on commit 3f1d26c

Please sign in to comment.