From 85b3f1af5dc3369c4cbad728a0efbab6f4503d16 Mon Sep 17 00:00:00 2001 From: MaksimZhukov Date: Thu, 2 Jul 2020 14:09:10 +0300 Subject: [PATCH] Convert array to string --- get-new-tool-versions/get-new-tool-versions.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/get-new-tool-versions/get-new-tool-versions.ps1 b/get-new-tool-versions/get-new-tool-versions.ps1 index 6d3a021..60952e6 100644 --- a/get-new-tool-versions/get-new-tool-versions.ps1 +++ b/get-new-tool-versions/get-new-tool-versions.ps1 @@ -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" }