Skip to content

Commit c100755

Browse files
Refactor environment variable logging to remove 'RUNNER_' prefix for improved clarity
1 parent 5585e36 commit c100755

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/main.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ process {
119119
$props = @{}
120120

121121
Get-ChildItem Env: | Where-Object { $_.Name -like 'RUNNER_*' } | ForEach-Object {
122-
$props[$_.Name] = $_.Value
122+
$name = $_.Name
123+
$name = $name -replace '^RUNNER_'
124+
$props[$name] = $_.Value
123125
}
124126

125127
$customObject = [PSCustomObject]$props

0 commit comments

Comments
 (0)