mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 19:50:24 +00:00
check condition
This commit is contained in:
@@ -4,7 +4,7 @@ class BaseVersionsParser {
|
||||
|
||||
[SemVer[]] GetAvailableVersions() {
|
||||
$allVersionsRaw = $this.ParseAllAvailableVersions()
|
||||
$allVersions = $allVersionsRaw | ForEach-Object { Write-Host $_; $this.FormatVersion($_) }
|
||||
$allVersions = $allVersionsRaw | ForEach-Object { $this.FormatVersion($_) }
|
||||
$filteredVersions = $allVersions | Where-Object { $this.ShouldIncludeVersion($_) }
|
||||
return $filteredVersions
|
||||
}
|
||||
@@ -26,7 +26,6 @@ class BaseVersionsParser {
|
||||
}
|
||||
|
||||
hidden [string] BuildGitHubFileUrl($OrganizationName, $RepositoryName, $BranchName, $FilePath) {
|
||||
# https://raw.githubusercontent.com/actions/node-versions/main/versions-manifest.json
|
||||
return "https://raw.githubusercontent.com/${OrganizationName}/${RepositoryName}/${BranchName}/${FilePath}"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user