Skip to content

Commit

Permalink
FPX: GHA last 2 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jvhoof committed Aug 21, 2023
1 parent 63652e5 commit 48a31dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/fpx-azure-marketplace-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
$marketplaceVersionsUI = @()
$versions = Get-AzVMImage -PublisherName "${env:PUBLISHER}" -Location eastus -Offer "${env:PRODUCTOFFER}" -sku "${env:PRODUCTSKU}"
$marketplaceVersions += $($versions | Where-Object {$_.Version.StartsWith("7.0")} | Sort-Object -Unique -Property Version | Select-Object -Last 2).Version
$marketplaceVersions += $($versions | Where-Object {$_.Version.StartsWith("7.2")} | Sort-Object -Unique -Property Version | Select-Object -Last 2).Version
$marketplaceVersions += $($versions | Where-Object {$_.Version.StartsWith("7.0")} | Sort-Object -Unique { $_.Version -as [version]} | Select-Object -Last 2).Version
$marketplaceVersions += $($versions | Where-Object {$_.Version.StartsWith("7.2")} | Sort-Object -Unique { $_.Version -as [version]} | Select-Object -Last 2).Version
$marketplaceVersions += "latest"
$marketplaceVersions | ForEach-Object { $marketplaceVersionsUI += [pscustomobject]@{label=$_;value=$_} }
Expand Down

0 comments on commit 48a31dc

Please sign in to comment.