Skip to content

Commit 982038e

Browse files
Remove unused static property logging in main.ps1 and read GitHub state directly
1 parent 980eff1 commit 982038e

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

scripts/main.ps1

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -112,26 +112,7 @@ process {
112112
Workspace = $env:RUNNER_WORKSPACE
113113
Processors = [System.Environment]::ProcessorCount
114114
} | Format-List
115-
116-
# Create an empty hashtable to store property name/value pairs.
117-
$props = @{}
118-
119-
# Enumerate each static property on [System.Environment].
120-
[System.Environment] |
121-
Get-Member -Static -MemberType Property |
122-
ForEach-Object {
123-
# Store the value of each static property in the hashtable,
124-
# keyed by the property name.
125-
$props[$_.Name] = [System.Environment]::$($_.Name)
126-
}
127-
128-
# Cast the hashtable to a PSCustomObject so you get a single object
129-
# with all property/value pairs.
130-
$EnvironmentObject = [PSCustomObject]$props
131-
132-
# Display the custom object.
133-
$EnvironmentObject | Format-List
134-
115+
Get-Content -Path $env:GITHUB_STATE
135116
}
136117

137118
Write-Output '┗━━━━━━━━━━━━━━━━━━━━━━━━━━━┛'

0 commit comments

Comments
 (0)