File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed
Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff 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 ' ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━┛'
You can’t perform that action at this time.
0 commit comments