Compare commits

..

3 Commits

Author SHA1 Message Date
Mikhail Timofeev
c3143dd446 Update verify-xamarin-parser.psm1 2022-06-01 16:04:34 +03:00
Vladimir Safonkin
31f01aedc7 Get only LTS Node versions from node-versions manifest file (#53)
* Get only LTS Node versions from manifest

* Minor fix
2022-04-28 14:59:24 +02:00
Mikhail Timofeev
e6dbb79745 Merge pull request #52 from actions/shilovmaksim/remove-azdo-related-code
Remove AzDo related code
2022-02-28 10:35:50 +03:00
2 changed files with 6 additions and 4 deletions

View File

@@ -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"."
}

View File

@@ -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
}
}