mirror of
https://github.com/actions/go-versions.git
synced 2026-01-30 14:08:36 +00:00
Compare commits
5 Commits
LogsPathCh
...
1.25.1-174
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
191b5a3c66 | ||
|
|
b10cef4a70 | ||
|
|
d3d9aedc52 | ||
|
|
a3e5efd44d | ||
|
|
40c37f487c |
4
.github/workflows/get-go-versions.yml
vendored
4
.github/workflows/get-go-versions.yml
vendored
@@ -1,7 +1,7 @@
|
|||||||
name: Get Go versions
|
name: Get Go versions
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 3,15 * * *'
|
- cron: '0 0,12 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -10,4 +10,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tool-name: "Go"
|
tool-name: "Go"
|
||||||
image-url: "https://go.dev/images/gopher-footer.jpg"
|
image-url: "https://go.dev/images/gopher-footer.jpg"
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|||||||
@@ -10,13 +10,29 @@ Describe "Go" {
|
|||||||
function Get-UseGoLogs {
|
function Get-UseGoLogs {
|
||||||
# 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
|
$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
|
||||||
|
|
||||||
$useGoLogFile = Get-ChildItem -Path $logsFolderPath | Where-Object {
|
if ($resolvedPath -and -not [string]::IsNullOrEmpty($resolvedPath.Path) -and (Test-Path $resolvedPath.Path)) {
|
||||||
$logContent = Get-Content $_.Fullname -Raw
|
$useGoLogFile = Get-ChildItem -Path $resolvedPath | Where-Object {
|
||||||
return $logContent -match "setup-go@v"
|
$logContent = Get-Content $_.Fullname -Raw
|
||||||
} | Select-Object -First 1
|
return $logContent -match "setup-go@v"
|
||||||
return $useGoLogFile.Fullname
|
} | Select-Object -First 1
|
||||||
|
|
||||||
|
# Return the file name if a match is found
|
||||||
|
if ($useGoLogFile) {
|
||||||
|
return $useGoLogFile.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,133 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"version": "1.25.0",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/go-versions/releases/tag/1.25.0-16925932082",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "go-1.25.0-darwin-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.25.0-16925932082/go-1.25.0-darwin-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.25.0-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.25.0-16925932082/go-1.25.0-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.25.0-linux-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.25.0-16925932082/go-1.25.0-linux-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.25.0-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.25.0-16925932082/go-1.25.0-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.25.0-win32-arm64.zip",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.25.0-16925932082/go-1.25.0-win32-arm64.zip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.25.0-win32-x64.zip",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.25.0-16925932082/go-1.25.0-win32-x64.zip"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "1.24.6",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/go-versions/releases/tag/1.24.6-16792114823",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "go-1.24.6-darwin-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.6-16792114823/go-1.24.6-darwin-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.24.6-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.6-16792114823/go-1.24.6-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.24.6-linux-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.6-16792114823/go-1.24.6-linux-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.24.6-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.6-16792114823/go-1.24.6-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.24.6-win32-arm64.zip",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.6-16792114823/go-1.24.6-win32-arm64.zip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.24.6-win32-x64.zip",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.6-16792114823/go-1.24.6-win32-x64.zip"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "1.24.5",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/go-versions/releases/tag/1.24.5-16210585985",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "go-1.24.5-darwin-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.5-16210585985/go-1.24.5-darwin-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.24.5-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.5-16210585985/go-1.24.5-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.24.5-linux-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.5-16210585985/go-1.24.5-linux-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.24.5-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.5-16210585985/go-1.24.5-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.24.5-win32-arm64.zip",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.5-16210585985/go-1.24.5-win32-arm64.zip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.24.5-win32-x64.zip",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.5-16210585985/go-1.24.5-win32-x64.zip"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "1.24.4",
|
"version": "1.24.4",
|
||||||
"stable": true,
|
"stable": true,
|
||||||
@@ -214,6 +343,92 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"version": "1.23.12",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/go-versions/releases/tag/1.23.12-16792118003",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "go-1.23.12-darwin-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.12-16792118003/go-1.23.12-darwin-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.23.12-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.12-16792118003/go-1.23.12-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.23.12-linux-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.12-16792118003/go-1.23.12-linux-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.23.12-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.12-16792118003/go-1.23.12-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.23.12-win32-arm64.zip",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.12-16792118003/go-1.23.12-win32-arm64.zip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.23.12-win32-x64.zip",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.12-16792118003/go-1.23.12-win32-x64.zip"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "1.23.11",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/go-versions/releases/tag/1.23.11-16210591255",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "go-1.23.11-darwin-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.11-16210591255/go-1.23.11-darwin-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.23.11-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.11-16210591255/go-1.23.11-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.23.11-linux-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.11-16210591255/go-1.23.11-linux-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.23.11-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.11-16210591255/go-1.23.11-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.23.11-win32-arm64.zip",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.11-16210591255/go-1.23.11-win32-arm64.zip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.23.11-win32-x64.zip",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.11-16210591255/go-1.23.11-win32-x64.zip"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "1.23.10",
|
"version": "1.23.10",
|
||||||
"stable": true,
|
"stable": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user