Compare commits

..

4 Commits

Author SHA1 Message Date
HarithaVattikuti 6e1322a96e Update logic 2025-07-10 17:54:18 -05:00
HarithaVattikuti a3ba0f5826 rename variable 2025-07-09 23:42:59 -05:00
HarithaVattikuti b9a5738c71 Updated logic 2025-07-09 23:34:47 -05:00
HarithaVattikuti bac9381d43 Logs Path change 2025-07-09 18:52:14 -05:00
4 changed files with 10 additions and 1053 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
name: Get Go versions
on:
schedule:
- cron: '0 0,12 * * *'
- cron: '0 3,15 * * *'
workflow_dispatch:
jobs:
@@ -10,4 +10,4 @@ jobs:
with:
tool-name: "Go"
image-url: "https://go.dev/images/gopher-footer.jpg"
secrets: inherit
secrets: inherit
+1 -1
View File
@@ -66,7 +66,7 @@ class GoBuilder {
$filename = "$goVersion.$goPlatform-$arch.$ArchiveType"
return "https://go.dev/dl/$filename"
return "https://storage.googleapis.com/golang/$filename"
}
[string] Download() {
+7 -18
View File
@@ -8,26 +8,15 @@ Describe "Go" {
$sourceLocation = Get-Location
function Get-UseGoLogs {
$runnerProc = Get-Process -Name "Runner.Listener" -ErrorAction SilentlyContinue | Select-Object -First 1
#Write-Host "`$runnerProc: $($runnerProc | Out-String)"
if (-not $runnerProc -or -not $runnerProc.Path) {
Write-Error "Runner.Listener process not found."
return
}
# Go up two directories to get runner root
$runnerRoot = Split-Path (Split-Path $runnerProc.Path -Parent) -Parent
#Write-Host "`$runnerRoot: $runnerRoot"
# Recursively find all _diag/pages folders under the runner root directory
$possiblePaths = Get-ChildItem -Path $runnerRoot -Directory -Recurse -Depth 4 -ErrorAction SilentlyContinue |
Where-Object { $_.FullName -like "*_diag\pages" -or $_.FullName -like "*_diag/pages" }
Write-Host "LogsPaths:"
$possiblePaths | ForEach-Object { Write-Host $_.FullName }
# GitHub Windows images don't have `HOME` variable
$homeDir = $env:HOME ?? $env:HOMEDRIVE
$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
if ($logsFolderPath) {
$resolvedPath = Resolve-Path -Path $logsFolderPath -ErrorAction SilentlyContinue
}
$resolvedPath = Resolve-Path -Path $logsFolderPath -ErrorAction SilentlyContinue
if ($resolvedPath -and -not [string]::IsNullOrEmpty($resolvedPath.Path) -and (Test-Path $resolvedPath.Path)) {
$useGoLogFile = Get-ChildItem -Path $resolvedPath | Where-Object {
File diff suppressed because it is too large Load Diff