Skip to content

Commit 6a93c3f

Browse files
🩹 [Patch]: Update output format for GitHub configuration and context to use Format-List
1 parent b2cd139 commit 6a93c3f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎scripts/main.ps1‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ Write-Output 'Installed modules:'
4848
Get-InstalledPSResource | Select-Object Name, Version, Prerelease | Format-Table -AutoSize
4949

5050
Write-Output 'GitHub module configuration:'
51-
Get-GitHubConfig | Select-Object Name, ID, RunEnv | Format-Table -AutoSize
52-
53-
'::endgroup::'
51+
Get-GitHubConfig | Format-List
5452

5553
$providedToken = -not [string]::IsNullOrEmpty($env:GITHUB_ACTION_INPUT_Token)
5654
$providedClientID = -not [string]::IsNullOrEmpty($env:GITHUB_ACTION_INPUT_ClientID)
@@ -59,15 +57,17 @@ Write-Verbose 'Provided authentication info:'
5957
Write-Verbose "Token: [$providedToken]"
6058
Write-Verbose "ClientID: [$providedClientID]"
6159
Write-Verbose "PrivateKey: [$providedPrivateKey]"
60+
'::endgroup::'
61+
6262

6363
if ($providedClientID -and $providedPrivateKey) {
6464
LogGroup 'Connecting using provided GitHub App' {
6565
Connect-GitHub -ClientID $env:GITHUB_ACTION_INPUT_ClientID -PrivateKey $env:GITHUB_ACTION_INPUT_PrivateKey -Silent
66-
Get-GitHubContext | Format-Table -AutoSize
66+
Get-GitHubContext | Format-List
6767
}
6868
} elseif ($providedToken) {
6969
LogGroup 'Connecting using provided token' {
7070
Connect-GitHub -Token $env:GITHUB_ACTION_INPUT_Token -Silent
71-
Get-GitHubContext | Format-Table -AutoSize
71+
Get-GitHubContext | Format-List
7272
}
7373
}

0 commit comments

Comments
 (0)