Skip to content

Commit

Permalink
Merge pull request #4827 from microsoft/andrueastman/releaseScript
Browse files Browse the repository at this point in the history
Follow up to #4826
  • Loading branch information
baywet authored Jun 13, 2024
2 parents c609889 + dbd45f8 commit d3bb9c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/update-versions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ function Get-LatestNugetVersion {

$url = "https://api.nuget.org/v3/registration5-gz-semver2/$($packageId.ToLowerInvariant())/index.json"
$response = Invoke-RestMethod -Uri $url -Method Get
$response.items[$response.items.Count - 1].upper
$version = $response.items | Select-Object -ExpandProperty upper | ForEach-Object { [System.Management.Automation.SemanticVersion]$_ } | sort-object | Select-Object -Last 1
$version.ToString()
}
# Get the latest github release
function Get-LatestGithubRelease {
Expand Down

0 comments on commit d3bb9c3

Please sign in to comment.