Compare commits

..

7 Commits

Author SHA1 Message Date
Haritha
e8a6c3090a Update log
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-10 17:36:14 -05:00
HarithaVattikuti
abceb80206 Updated logic 2025-07-10 17:25:26 -05:00
HarithaVattikuti
bebc144061 update logic 2025-07-09 23:46:56 -05:00
HarithaVattikuti
e2fc36557a Update paths 2025-07-09 19:19:04 -05:00
github-actions[bot]
7bff9a2a32 Update versions-manifest (#210)
Co-authored-by: Service account <no-reply@microsoft.com>
2025-06-25 09:05:54 -05:00
github-actions[bot]
ef431e4d6b Update versions-manifest (#209)
Co-authored-by: Service account <no-reply@microsoft.com>
2025-06-23 22:51:26 -05:00
github-actions[bot]
498365717c Update versions-manifest (#208)
Co-authored-by: Service account <no-reply@microsoft.com>
2025-06-09 23:32:28 -05:00
2 changed files with 198 additions and 7 deletions

View File

@@ -8,13 +8,30 @@ Describe "Node.js" {
function Get-UseNodeLogs {
# GitHub Windows images don't have `HOME` variable
$homeDir = $env:HOME ?? $env:HOMEDRIVE
$logsFolderPath = Join-Path -Path $homeDir -ChildPath "runners/*/_diag/pages" -Resolve
$useNodeLogFile = Get-ChildItem -Path $logsFolderPath | Where-Object {
$logContent = Get-Content $_.Fullname -Raw
return $logContent -match "setup-node@v"
} | Select-Object -First 1
return $useNodeLogFile.Fullname
$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
return $logContent -match "setup-node@v"
} | Select-Object -First 1
# 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"
}
}
}

View File

@@ -1,4 +1,90 @@
[
{
"version": "24.3.0",
"stable": true,
"release_url": "https://github.com/actions/node-versions/releases/tag/24.3.0-15866716565",
"files": [
{
"filename": "node-24.3.0-darwin-arm64.tar.gz",
"arch": "arm64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/24.3.0-15866716565/node-24.3.0-darwin-arm64.tar.gz"
},
{
"filename": "node-24.3.0-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/24.3.0-15866716565/node-24.3.0-darwin-x64.tar.gz"
},
{
"filename": "node-24.3.0-linux-arm64.tar.gz",
"arch": "arm64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/24.3.0-15866716565/node-24.3.0-linux-arm64.tar.gz"
},
{
"filename": "node-24.3.0-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/24.3.0-15866716565/node-24.3.0-linux-x64.tar.gz"
},
{
"filename": "node-24.3.0-win32-arm64.7z",
"arch": "arm64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/24.3.0-15866716565/node-24.3.0-win32-arm64.7z"
},
{
"filename": "node-24.3.0-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/24.3.0-15866716565/node-24.3.0-win32-x64.7z"
}
]
},
{
"version": "24.2.0",
"stable": true,
"release_url": "https://github.com/actions/node-versions/releases/tag/24.2.0-15549907769",
"files": [
{
"filename": "node-24.2.0-darwin-arm64.tar.gz",
"arch": "arm64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/24.2.0-15549907769/node-24.2.0-darwin-arm64.tar.gz"
},
{
"filename": "node-24.2.0-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/24.2.0-15549907769/node-24.2.0-darwin-x64.tar.gz"
},
{
"filename": "node-24.2.0-linux-arm64.tar.gz",
"arch": "arm64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/24.2.0-15549907769/node-24.2.0-linux-arm64.tar.gz"
},
{
"filename": "node-24.2.0-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/24.2.0-15549907769/node-24.2.0-linux-x64.tar.gz"
},
{
"filename": "node-24.2.0-win32-arm64.7z",
"arch": "arm64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/24.2.0-15549907769/node-24.2.0-win32-arm64.7z"
},
{
"filename": "node-24.2.0-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/24.2.0-15549907769/node-24.2.0-win32-x64.7z"
}
]
},
{
"version": "24.1.0",
"stable": true,
@@ -171,6 +257,50 @@
}
]
},
{
"version": "22.17.0",
"stable": true,
"lts": "Jod",
"release_url": "https://github.com/actions/node-versions/releases/tag/22.17.0-15866718879",
"files": [
{
"filename": "node-22.17.0-darwin-arm64.tar.gz",
"arch": "arm64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/22.17.0-15866718879/node-22.17.0-darwin-arm64.tar.gz"
},
{
"filename": "node-22.17.0-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/22.17.0-15866718879/node-22.17.0-darwin-x64.tar.gz"
},
{
"filename": "node-22.17.0-linux-arm64.tar.gz",
"arch": "arm64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/22.17.0-15866718879/node-22.17.0-linux-arm64.tar.gz"
},
{
"filename": "node-22.17.0-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/22.17.0-15866718879/node-22.17.0-linux-x64.tar.gz"
},
{
"filename": "node-22.17.0-win32-arm64.7z",
"arch": "arm64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/22.17.0-15866718879/node-22.17.0-win32-arm64.7z"
},
{
"filename": "node-22.17.0-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/22.17.0-15866718879/node-22.17.0-win32-x64.7z"
}
]
},
{
"version": "22.16.0",
"stable": true,
@@ -1095,6 +1225,50 @@
}
]
},
{
"version": "20.19.3",
"stable": true,
"lts": "Iron",
"release_url": "https://github.com/actions/node-versions/releases/tag/20.19.3-15828158811",
"files": [
{
"filename": "node-20.19.3-darwin-arm64.tar.gz",
"arch": "arm64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.3-15828158811/node-20.19.3-darwin-arm64.tar.gz"
},
{
"filename": "node-20.19.3-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.3-15828158811/node-20.19.3-darwin-x64.tar.gz"
},
{
"filename": "node-20.19.3-linux-arm64.tar.gz",
"arch": "arm64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.3-15828158811/node-20.19.3-linux-arm64.tar.gz"
},
{
"filename": "node-20.19.3-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.3-15828158811/node-20.19.3-linux-x64.tar.gz"
},
{
"filename": "node-20.19.3-win32-arm64.7z",
"arch": "arm64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.3-15828158811/node-20.19.3-win32-arm64.7z"
},
{
"filename": "node-20.19.3-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.3-15828158811/node-20.19.3-win32-x64.7z"
}
]
},
{
"version": "20.19.2",
"stable": true,