Convert array to string

pull/5/head
MaksimZhukov 5 years ago
parent e48cddbe4f
commit 85b3f1af5d

@ -53,8 +53,9 @@ $versionsToBuild = Skip-ExistingVersions -VersionsFromManifest $versionsFromMani
-VersionsFromDist $formattedVersions
if ($versionsToBuild) {
Write-Host "The following versions are available to build:`n$versionsToBuild"
Write-Output "##vso[task.setvariable variable=TOOL_VERSIONS]$versionsToBuild"
$availableVersions = $versionsToBuild -join ","
Write-Host "The following versions are available to build:`n$availableVersions"
Write-Output "##vso[task.setvariable variable=TOOL_VERSIONS]$availableVersions"
} else {
Write-Host "There isn't versions to build"
}

Loading…
Cancel
Save