mirror of
https://code.forgejo.org/actions/go-versions
synced 2025-07-05 08:05:59 +02:00
migrated Go to GA
This commit is contained in:
parent
2873528ad9
commit
a75b0e4ce5
4 changed files with 245 additions and 3 deletions
|
@ -7,7 +7,13 @@ Import-Module (Join-Path $PSScriptRoot "../helpers/pester-extensions.psm1")
|
|||
Import-Module (Join-Path $PSScriptRoot "../helpers/common-helpers.psm1")
|
||||
|
||||
function Get-UseGoLogs {
|
||||
$logsFolderPath = Join-Path -Path $env:AGENT_HOMEDIRECTORY -ChildPath "_diag" | Join-Path -ChildPath "pages"
|
||||
$homeDir = $env:HOME
|
||||
if ([string]::IsNullOrEmpty($homeDir)) {
|
||||
# GitHub Windows images don't have `HOME` variable
|
||||
$homeDir = $env:HOMEDRIVE
|
||||
}
|
||||
|
||||
$logsFolderPath = Join-Path -Path $homeDir -ChildPath "runners/*/_diag/pages" -Resolve
|
||||
|
||||
$useGoLogFile = Get-ChildItem -Path $logsFolderPath | Where-Object {
|
||||
$logContent = Get-Content $_.Fullname -Raw
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue