fixed issue on space in solution name
This commit is contained in:
Родитель
830230a5a5
Коммит
412e0667ec
|
@ -42,19 +42,17 @@ jobs:
|
|||
$hasCreateUiDefinitionTemplateChanged = $true
|
||||
}
|
||||
|
||||
$filePaths = $filteredFiles -split ' '
|
||||
if ($null -ne $filePaths[0])
|
||||
if ($filteredFiles.Count -eq 1)
|
||||
{
|
||||
$solutionNameWithOtherPath = $filePaths[0].SubString(10)
|
||||
if ($solutionNameWithOtherPath -ne '' -and $solutionNameWithOtherPath -ne $null)
|
||||
$packageIndex = $filteredFiles.IndexOf("/Package")
|
||||
$sName = $filteredFiles.SubString(10, $packageIndex - 10)
|
||||
}
|
||||
else
|
||||
{
|
||||
$headers = $solutionNameWithOtherPath -split '/', 3
|
||||
if ($null -ne $headers[0])
|
||||
{
|
||||
$sName = $headers[0]
|
||||
}
|
||||
}
|
||||
$packageIndex = $filteredFiles[0].IndexOf("/Package")
|
||||
$sName = $filteredFiles[0].SubString(10, $packageIndex - 10)
|
||||
}
|
||||
Write-Host "SolutionName: $sName"
|
||||
}
|
||||
|
||||
Write-Output "::set-output name=solutionName::$sName"
|
||||
|
|
Загрузка…
Ссылка в новой задаче