mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-11 03:56:46 +00:00
Compare commits
3 Commits
shilovmaks
...
miketimofe
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c3143dd446 | ||
|
|
31f01aedc7 | ||
|
|
e6dbb79745 |
@@ -8,8 +8,10 @@ function Search-ToolsVersionsNotOnImage {
|
||||
|
||||
$stableReleases = (Invoke-RestMethod $ReleasesUrl) | Where-Object stable -eq $true
|
||||
$stableReleaseVersions = $stableReleases | ForEach-Object {
|
||||
if ($ToolName -eq "Node") {
|
||||
$_.$FilterParameter.split(".")[0] + ".0"
|
||||
if ($ToolName -eq "Node") {
|
||||
if ($_.lts) {
|
||||
$_.$FilterParameter.split(".")[0] + ".0"
|
||||
}
|
||||
} else {
|
||||
$_.$FilterParameter.split(".")[0,1] -join"."
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ function Search-XamarinVersionsNotOnImage {
|
||||
|
||||
$xamarinReleases = (Invoke-RestMethod $ReleasesUrl).items
|
||||
$filteredReleases = $xamarinReleases | Where-Object {$_.name -in $FilterProducts.name} | Sort-Object name | Select-Object name, version
|
||||
$toolsetUrl = "https://raw.githubusercontent.com/actions/virtual-environments/main/images/macos/toolsets/toolset-11.json"
|
||||
$toolsetUrl = "https://raw.githubusercontent.com/actions/virtual-environments/main/images/macos/toolsets/toolset-12.json"
|
||||
$uploadedReleases = (Invoke-RestMethod $toolsetUrl).xamarin
|
||||
$releasesOnImage = @()
|
||||
foreach ($FilterProduct in $FilterProducts) {
|
||||
@@ -16,4 +16,4 @@ function Search-XamarinVersionsNotOnImage {
|
||||
'{0,-15} : {1}' -f $_.name, $_.version
|
||||
}
|
||||
return $versionsToAdd
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user