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 -VersionsFromDist $formattedVersions
if ($versionsToBuild) { if ($versionsToBuild) {
Write-Host "The following versions are available to build:`n$versionsToBuild" $availableVersions = $versionsToBuild -join ","
Write-Output "##vso[task.setvariable variable=TOOL_VERSIONS]$versionsToBuild" Write-Host "The following versions are available to build:`n$availableVersions"
Write-Output "##vso[task.setvariable variable=TOOL_VERSIONS]$availableVersions"
} else { } else {
Write-Host "There isn't versions to build" Write-Host "There isn't versions to build"
} }

Loading…
Cancel
Save