mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 03:13:23 +00:00
Get only LTS Node versions from node-versions manifest file (#53)
* Get only LTS Node versions from manifest * Minor fix
This commit is contained in:
committed by
GitHub
parent
e6dbb79745
commit
31f01aedc7
@@ -9,7 +9,9 @@ function Search-ToolsVersionsNotOnImage {
|
||||
$stableReleases = (Invoke-RestMethod $ReleasesUrl) | Where-Object stable -eq $true
|
||||
$stableReleaseVersions = $stableReleases | ForEach-Object {
|
||||
if ($ToolName -eq "Node") {
|
||||
if ($_.lts) {
|
||||
$_.$FilterParameter.split(".")[0] + ".0"
|
||||
}
|
||||
} else {
|
||||
$_.$FilterParameter.split(".")[0,1] -join"."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user