mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-23 12:51:24 +01:00
Start getting tag list
This commit is contained in:
parent
de6e91a778
commit
18a992bf08
@ -120,6 +120,31 @@ if (!(Test-Path -PathType Leaf -Path $arduinoCLI)) {
|
||||
}
|
||||
}
|
||||
|
||||
<#
|
||||
Get the list of tags
|
||||
#>
|
||||
try {
|
||||
$tagList = Invoke-RestMethod -Uri $gitHubAPITags
|
||||
}
|
||||
catch {
|
||||
Write-Output "Failed to obtain list of available EX-CommandStation versions"
|
||||
Exit
|
||||
}
|
||||
|
||||
<#
|
||||
Get latest two Prod and Devel releases, add to hash table for selection by user
|
||||
#>
|
||||
foreach ($tag in $tagList | Sort-Object -Property ref -Descending) {
|
||||
if ($tag.ref -Like "*Prod") {
|
||||
Write-Output $tag.ref
|
||||
}
|
||||
}
|
||||
foreach ($tag in $tagList | Sort-Object -Property ref -Descending) {
|
||||
if ($tag.ref -Like "*Devel") {
|
||||
Write-Output $tag.ref
|
||||
}
|
||||
}
|
||||
|
||||
<#
|
||||
Write-Output "Installing using directory $buildDirectory"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user