[release/v7.4.0-preview.6] Remove the ref folder before running compliance (#20373) (#20375)

This commit is contained in:
Dongbo Wang
2023-09-26 09:23:43 -07:00
committed by GitHub
parent b5b6204f10
commit 86ae2996fb
@@ -59,6 +59,11 @@ jobs:
$OutputFolder = Split-Path (Get-PSOutput)
Write-Host "##vso[task.setvariable variable=BinDir]$OutputFolder"
Write-Verbose -Verbose -Message "Deleting ref folder from output folder"
if (Test-Path $OutputFolder/ref) {
Remove-Item -Recurse -Force $OutputFolder/ref
}
workingDirectory: '$(Build.SourcesDirectory)'
displayName: 'Build PowerShell Source'