|
|
|
@ -1,13 +1,15 @@
|
|
|
|
|
<#
|
|
|
|
|
.SYNOPSIS
|
|
|
|
|
Check and return list of new available tool versions
|
|
|
|
|
Check and return list of new available tool versions that not added to toolsets yet
|
|
|
|
|
|
|
|
|
|
.PARAMETER ToolName
|
|
|
|
|
Required parameter. The name of tool for which parser is available (Node, Go, Python, Xamarin)
|
|
|
|
|
Required parameter. The name of tool for which parser is available (Python, Xamarin)
|
|
|
|
|
#>
|
|
|
|
|
|
|
|
|
|
param (
|
|
|
|
|
[Parameter(Mandatory)] [string] $ToolName
|
|
|
|
|
[Parameter(Mandatory)]
|
|
|
|
|
[ValidateSet("Python", "Xamarin")]
|
|
|
|
|
[string]$ToolName
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if ($ToolName -eq "Python") {
|
|
|
|
@ -16,8 +18,8 @@ if ($ToolName -eq "Python") {
|
|
|
|
|
Where-Object stable -eq $true |
|
|
|
|
|
ForEach-Object {$_.version.split(".")[0,1] -join"."} |
|
|
|
|
|
Select-Object -Unique
|
|
|
|
|
$toolsetManifestUrl = "https://raw.githubusercontent.com/actions/virtual-environments/main/images/win/toolsets/toolset-2019.json"
|
|
|
|
|
$latestExistingMinorVesion = ((Invoke-RestMethod $toolsetManifestUrl).toolcache |
|
|
|
|
|
$toolsetUrl = "https://raw.githubusercontent.com/actions/virtual-environments/main/images/win/toolsets/toolset-2019.json"
|
|
|
|
|
$latestExistingMinorVesion = ((Invoke-RestMethod $toolsetUrl).toolcache |
|
|
|
|
|
Where-Object {$_.name -eq "Python" -and $_.arch -eq "x64"}).versions |
|
|
|
|
|
ForEach-Object {$_.split(".")[0,1] -join"."} |
|
|
|
|
|
Select-Object -Last 1
|
|
|
|
@ -28,8 +30,8 @@ if ($ToolName -eq "Xamarin") {
|
|
|
|
|
$xamarinReleases = (Invoke-RestMethod "http://aka.ms/manifest/stable").items
|
|
|
|
|
$xamarinProducts = @('Mono Framework', 'Xamarin.Android', 'Xamarin.iOS', 'Xamarin.Mac')
|
|
|
|
|
$filteredReleases = $xamarinReleases | Where-Object {$_.name -in $xamarinProducts} | Sort-Object name | Select-Object name, version
|
|
|
|
|
$toolsetManifestUrl = "https://raw.githubusercontent.com/actions/virtual-environments/main/images/macos/toolsets/toolset-11.json"
|
|
|
|
|
$uploadedReleases = (Invoke-RestMethod $toolsetManifestUrl).xamarin
|
|
|
|
|
$toolsetUrl = "https://raw.githubusercontent.com/actions/virtual-environments/main/images/macos/toolsets/toolset-11.json"
|
|
|
|
|
$uploadedReleases = (Invoke-RestMethod $toolsetUrl).xamarin
|
|
|
|
|
$releasesOnImage = @{
|
|
|
|
|
'Mono Framework' = $uploadedReleases.'mono-versions'
|
|
|
|
|
'Xamarin.Android' = $uploadedReleases.'android-versions'
|
|
|
|
|