From 97e0e3a660a8797a1e2ee38a9db0bcb9bd1e8721 Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Tue, 17 Aug 2021 16:57:27 +0300 Subject: [PATCH] update get-new-tool-version.ps1 --- get-new-tool-versions/get-new-tool-versions.ps1 | 6 +++++- get-new-tool-versions/parsers/go-parser.psm1 | 2 +- 2 files changed, 6 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 a361e31..de31ffd 100644 --- a/get-new-tool-versions/get-new-tool-versions.ps1 +++ b/get-new-tool-versions/get-new-tool-versions.ps1 @@ -29,7 +29,11 @@ if ($ToolName -eq "Xamarin") { if ($VersionsToBuild) { $availableVersions = $VersionsToBuild -join $joinChars Write-Host "The following versions are available to build:`n${availableVersions}" - Write-Host "::set-output name=version_number::${availableVersions}" + if ($ToolName -eq "Go") { + Write-Host "::set-output name=version_number::${availableVersions}" + } else { + Write-Host "##vso[task.setvariable variable=TOOL_VERSIONS;isOutput=true]${availableVersions}" + } } else { Write-Host "There aren't versions to build" } diff --git a/get-new-tool-versions/parsers/go-parser.psm1 b/get-new-tool-versions/parsers/go-parser.psm1 index 36cee7f..5b9abb0 100644 --- a/get-new-tool-versions/parsers/go-parser.psm1 +++ b/get-new-tool-versions/parsers/go-parser.psm1 @@ -2,7 +2,7 @@ using module "./base-parser.psm1" class GoVersionsParser: BaseVersionsParser { [SemVer[]] GetUploadedVersions() { - $url = $this.BuildGitHubFileUrl("nikita-bykov", "go-versions", "move-get-go-version", "versions-manifest.json") + $url = $this.BuildGitHubFileUrl("actions", "go-versions", "main", "versions-manifest.json") $releases = Invoke-RestMethod $url -MaximumRetryCount $this.ApiRetryCount -RetryIntervalSec $this.ApiRetryIntervalSeconds return $releases.version }