Skip to content

Commit 4396db1

Browse files
🩹 [Patch]: Enhance logging messages in GitHub PowerShell module setup for clarity
1 parent 3258860 commit 4396db1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎scripts/main.ps1‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ param()
44
$DebugPreference = $env:GITHUB_ACTION_INPUT_Debug -eq 'true' ? 'Continue' : 'SilentlyContinue'
55
$VerbosePreference = $env:GITHUB_ACTION_INPUT_Verbose -eq 'true' ? 'Continue' : 'SilentlyContinue'
66

7-
'::group::Setting up GitHub PowerShell module'
7+
'::group::GitHub-Script - Setting up GitHub PowerShell module'
88
$env:PSMODULE_GITHUB_SCRIPT = $true
99

1010
$Name = 'GitHub'
@@ -57,17 +57,19 @@ Write-Verbose "PrivateKey: [$providedPrivateKey]"
5757
'::endgroup::'
5858

5959
if ($providedClientID -and $providedPrivateKey) {
60-
LogGroup 'Connected using provided GitHub App' {
60+
LogGroup 'GitHub-Script - Connected using provided GitHub App' {
6161
Connect-GitHub -ClientID $env:GITHUB_ACTION_INPUT_ClientID -PrivateKey $env:GITHUB_ACTION_INPUT_PrivateKey -Silent
6262
Get-GitHubContext | Select-Object -Property * | Format-List
6363
}
6464
} elseif ($providedToken) {
65-
LogGroup 'Connected using provided token' {
65+
LogGroup 'GitHub-Script - Connected using provided token' {
6666
Connect-GitHub -Token $env:GITHUB_ACTION_INPUT_Token -Silent
6767
Get-GitHubContext | Select-Object -Property * | Format-List
6868
}
6969
}
7070

71-
LogGroup 'GitHub module configuration' {
71+
LogGroup 'GitHub-Script - GitHub module configuration' {
7272
Get-GitHubConfig | Format-List
7373
}
74+
75+
Write-Host '-----------------------------------------------'

0 commit comments

Comments
 (0)