Skip to content

Commit 1d36ee0

Browse files
🩹[Patch] List PowerShell variables (#9)
- Add PowerShell variables to the output logs
1 parent 3d7cea4 commit 1d36ee0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/main.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ Write-Verbose (Get-ChildItem -Path env: | Select-Object -Property Name, Value |
3737
Sort-Object -Property Name | Format-Table -AutoSize -Wrap | Out-String)
3838
Stop-LogGroup
3939

40+
Start-LogGroup 'PowerShell Variables'
41+
Write-Verbose (Get-Variable | Select-Object -Property Name, Value |
42+
Sort-Object -Property Name | Format-Table -AutoSize -Wrap | Out-String)
43+
Stop-LogGroup
44+
4045
Start-LogGroup 'Files and Folders'
4146
Write-Verbose (Get-ChildItem -Path $env:GITHUB_WORKSPACE -Recurse | Select-Object -ExpandProperty FullName | Sort-Object | Out-String)
4247
Stop-LogGroup

0 commit comments

Comments
 (0)