mirror of
https://github.com/actions/node-versions.git
synced 2025-09-11 14:52:53 +08:00
Compare commits
3 Commits
LogsPathCh
...
24.5.0-166
Author | SHA1 | Date | |
---|---|---|---|
|
447f233d8c | ||
|
48d06ac109 | ||
|
2f48f5f179 |
@@ -8,13 +8,30 @@ Describe "Node.js" {
|
|||||||
function Get-UseNodeLogs {
|
function Get-UseNodeLogs {
|
||||||
# GitHub Windows images don't have `HOME` variable
|
# GitHub Windows images don't have `HOME` variable
|
||||||
$homeDir = $env:HOME ?? $env:HOMEDRIVE
|
$homeDir = $env:HOME ?? $env:HOMEDRIVE
|
||||||
$logsFolderPath = Join-Path -Path $homeDir -ChildPath "runners/*/_diag/pages" -Resolve
|
|
||||||
|
|
||||||
$useNodeLogFile = Get-ChildItem -Path $logsFolderPath | Where-Object {
|
$possiblePaths = @(
|
||||||
|
Join-Path -Path $homeDir -ChildPath "actions-runner/cached/_diag/pages"
|
||||||
|
Join-Path -Path $homeDir -ChildPath "runners/*/_diag/pages"
|
||||||
|
)
|
||||||
|
|
||||||
|
$logsFolderPath = $possiblePaths | Where-Object { Test-Path $_ } | Select-Object -First 1
|
||||||
|
$resolvedPath = Resolve-Path -Path $logsFolderPath -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
|
if ($resolvedPath -and -not [string]::IsNullOrEmpty($resolvedPath.Path) -and (Test-Path $resolvedPath.Path)) {
|
||||||
|
$useNodeLogFile = Get-ChildItem -Path $resolvedPath | Where-Object {
|
||||||
$logContent = Get-Content $_.Fullname -Raw
|
$logContent = Get-Content $_.Fullname -Raw
|
||||||
return $logContent -match "setup-node@v"
|
return $logContent -match "setup-node@v"
|
||||||
} | Select-Object -First 1
|
} | Select-Object -First 1
|
||||||
return $useNodeLogFile.Fullname
|
|
||||||
|
# Return the file name if a match is found
|
||||||
|
if ($useNodeLogFile) {
|
||||||
|
return $useNodeLogFile.FullName
|
||||||
|
} else {
|
||||||
|
Write-Error "No matching log file found in the specified path: $($resolvedPath.Path)"
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Write-Error "The provided logs folder path is null, empty, or does not exist: $logsFolderPath"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,4 +1,90 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"version": "24.4.1",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/node-versions/releases/tag/24.4.1-16309768053",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "node-24.4.1-darwin-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/24.4.1-16309768053/node-24.4.1-darwin-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-24.4.1-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/24.4.1-16309768053/node-24.4.1-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-24.4.1-linux-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/24.4.1-16309768053/node-24.4.1-linux-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-24.4.1-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/24.4.1-16309768053/node-24.4.1-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-24.4.1-win32-arm64.7z",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/24.4.1-16309768053/node-24.4.1-win32-arm64.7z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-24.4.1-win32-x64.7z",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/24.4.1-16309768053/node-24.4.1-win32-x64.7z"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "24.4.0",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/node-versions/releases/tag/24.4.0-16210503505",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "node-24.4.0-darwin-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/24.4.0-16210503505/node-24.4.0-darwin-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-24.4.0-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/24.4.0-16210503505/node-24.4.0-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-24.4.0-linux-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/24.4.0-16210503505/node-24.4.0-linux-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-24.4.0-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/24.4.0-16210503505/node-24.4.0-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-24.4.0-win32-arm64.7z",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/24.4.0-16210503505/node-24.4.0-win32-arm64.7z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-24.4.0-win32-x64.7z",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/24.4.0-16210503505/node-24.4.0-win32-x64.7z"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "24.3.0",
|
"version": "24.3.0",
|
||||||
"stable": true,
|
"stable": true,
|
||||||
@@ -257,6 +343,50 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"version": "22.17.1",
|
||||||
|
"stable": true,
|
||||||
|
"lts": "Jod",
|
||||||
|
"release_url": "https://github.com/actions/node-versions/releases/tag/22.17.1-16309770702",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "node-22.17.1-darwin-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.17.1-16309770702/node-22.17.1-darwin-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-22.17.1-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.17.1-16309770702/node-22.17.1-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-22.17.1-linux-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.17.1-16309770702/node-22.17.1-linux-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-22.17.1-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.17.1-16309770702/node-22.17.1-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-22.17.1-win32-arm64.7z",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.17.1-16309770702/node-22.17.1-win32-arm64.7z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-22.17.1-win32-x64.7z",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.17.1-16309770702/node-22.17.1-win32-x64.7z"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "22.17.0",
|
"version": "22.17.0",
|
||||||
"stable": true,
|
"stable": true,
|
||||||
@@ -1225,6 +1355,50 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"version": "20.19.4",
|
||||||
|
"stable": true,
|
||||||
|
"lts": "Iron",
|
||||||
|
"release_url": "https://github.com/actions/node-versions/releases/tag/20.19.4-16309772647",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "node-20.19.4-darwin-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.4-16309772647/node-20.19.4-darwin-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.19.4-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.4-16309772647/node-20.19.4-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.19.4-linux-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.4-16309772647/node-20.19.4-linux-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.19.4-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.4-16309772647/node-20.19.4-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.19.4-win32-arm64.7z",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.4-16309772647/node-20.19.4-win32-arm64.7z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.19.4-win32-x64.7z",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.4-16309772647/node-20.19.4-win32-x64.7z"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "20.19.3",
|
"version": "20.19.3",
|
||||||
"stable": true,
|
"stable": true,
|
||||||
|
Reference in New Issue
Block a user