Skip to content

Commit 41ab655

Browse files
Add logging for GitHub runner information to enhance visibility
1 parent 99dabc4 commit 41ab655

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

scripts/main.ps1

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,21 @@ process {
9999
Get-GithubEventData | Format-List
100100
}
101101

102+
LogGroup ' - Runner Info' {
103+
[pscustomobject]@{
104+
Name = $env:RUNNER_NAME
105+
OS = $env:RUNNER_OS
106+
Arch = $env:RUNNER_ARCH
107+
Environment = $env:RUNNER_ENVIRONMENT
108+
Temp = $env:RUNNER_TEMP
109+
$Perflog = $env:RUNNER_PERFLOG
110+
$ToolCache = $env:RUNNER_TOOL_CACHE
111+
$TrackingID = $env:RUNNER_TRACKING_ID
112+
Workspace = $env:RUNNER_WORKSPACE
113+
Processors = [System.Environment]::ProcessorCount
114+
} | Format-List
115+
}
116+
102117
Write-Output '┗━━━━━━━━━━━━━━━━━━━━━━━━━━━┛'
103118

104119
} catch {

0 commit comments

Comments
 (0)