1
0
Fork 0
mirror of https://code.forgejo.org/actions/go-versions synced 2025-07-05 16:15:59 +02:00

migrated Go to GA

This commit is contained in:
Nikita Bykov 2020-08-19 15:13:09 +03:00
parent 2873528ad9
commit a75b0e4ce5
4 changed files with 245 additions and 3 deletions

View file

@ -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