@@ -47,9 +47,6 @@ if (-not $alreadyImported) {
4747Write-Output ' Installed modules:'
4848Get-InstalledPSResource | Select-Object Name, Version, Prerelease | Format-Table - AutoSize
4949
50- Write-Output ' GitHub module configuration:'
51- Get-GitHubConfig | Format-List
52-
5350$providedToken = -not [string ]::IsNullOrEmpty($env: GITHUB_ACTION_INPUT_Token )
5451$providedClientID = -not [string ]::IsNullOrEmpty($env: GITHUB_ACTION_INPUT_ClientID )
5552$providedPrivateKey = -not [string ]::IsNullOrEmpty($env: GITHUB_ACTION_INPUT_PrivateKey )
@@ -59,15 +56,18 @@ Write-Verbose "ClientID: [$providedClientID]"
5956Write-Verbose " PrivateKey: [$providedPrivateKey ]"
6057' ::endgroup::'
6158
62-
6359if ($providedClientID -and $providedPrivateKey ) {
64- LogGroup ' Connecting using provided GitHub App' {
60+ LogGroup ' Connected using provided GitHub App' {
6561 Connect-GitHub - ClientID $env: GITHUB_ACTION_INPUT_ClientID - PrivateKey $env: GITHUB_ACTION_INPUT_PrivateKey - Silent
66- Get-GitHubContext | Format-List
62+ Get-GitHubContext | Select-Object - Property * | Format-List
6763 }
6864} elseif ($providedToken ) {
69- LogGroup ' Connecting using provided token' {
65+ LogGroup ' Connected using provided token' {
7066 Connect-GitHub - Token $env: GITHUB_ACTION_INPUT_Token - Silent
71- Get-GitHubContext | Format-List
67+ Get-GitHubContext | Select-Object - Property * | Format-List
7268 }
7369}
70+
71+ LogGroup ' GitHub module configuration' {
72+ Get-GitHubConfig | Format-List
73+ }
0 commit comments