提交 c6937d7e 编写于 作者: D Dan Siegel

ci: don't use regex to evaluate paths

上级 238b1a6b
......@@ -11,9 +11,8 @@ New-Item -Path $nugetRoot -ItemType Directory -Force
$platforms = @('Forms', 'Wpf', 'Uno', 'Maui')
$core = @("Prism.Core", "Prism.Events", "Prism.dll", "Prism.pdb", "Prism.xml")
$files = Get-ChildItem -Path $artifactsRoot -Filter "*" -Recurse | Where-Object {
(Test-Path -Path $_.FullName -PathType Leaf) -and $_.FullName -notmatch $binariesRoot -and $_.FullName -notmatch $nugetRoot
}
$allowedExtensions = @('.dll', '.pdb', '.xml', '.nupkg', '.snupkg')
$files = Get-ChildItem -Path $artifactsRoot -Filter "*" -Recurse | Where-Object { (Test-Path -Path $_.FullName -PathType Leaf) -and $_.FullName.StartsWith($binariesRoot) -eq $false -and $_.FullName.StartsWith($nugetRoot) -eq $false -and ($allowedExtensions -contains [System.IO.Path]::GetExtension($_.FullName)) }
if ($files.Count -eq 0)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册