Skip to content

Commit

Permalink
Merge pull request #254 from microsoft/andrueastman/versionUpdateScript
Browse files Browse the repository at this point in the history
Fix version update script
  • Loading branch information
andrueastman authored Jun 13, 2024
2 parents 2bbc677 + 6aabe7c commit 3653af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ValidateProjectVersionUpdated.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Catch {
Exit 1
}

$currentPublishedVersion = [System.Management.Automation.SemanticVersion]$nugetIndex.items[0].upper
$currentPublishedVersion = $nugetIndex.items | Select-Object -ExpandProperty upper | ForEach-Object { [System.Management.Automation.SemanticVersion]$_ } | sort-object | Select-Object -Last 1

# Validate that the version number has been updated.
if ($currentProjectVersion -le $currentPublishedVersion) {
Expand Down

0 comments on commit 3653af8

Please sign in to comment.