Skip to content

Commit 178c4e6

Browse files
🩹 [Patch]: Update logging groups to connect to GitHub App installations and display contexts and Git configuration
1 parent 19dcf65 commit 178c4e6

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/TestWorkflow.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -495,12 +495,16 @@ jobs:
495495
Get-GitHubAppInstallation | Format-Table -AutoSize | Out-String
496496
}
497497
498-
LogGroup 'Do something as an installation' {
499-
Get-GithubAppInstallation | New-GitHubAppInstallationAccessToken | ForEach-Object {
500-
Connect-GitHub -Token $_.token -Silent
498+
LogGroup 'Connect to all installations of the app' {
499+
Connect-GitHubApp
500+
}
501+
502+
LogGroup 'Contexts' {
501503
Get-GitHubContext | Format-Table -AutoSize | Out-String
504+
}
505+
506+
LogGroup 'GitConfig' {
502507
Get-GitHubGitConfig | Format-Table -AutoSize | Out-String
503-
}
504508
}
505509
506510
ActionTestWithGitHubAppOrg:
@@ -526,12 +530,16 @@ jobs:
526530
Get-GitHubAppInstallation | Format-Table -AutoSize | Out-String
527531
}
528532
529-
LogGroup 'Do something as an installation' {
530-
Get-GithubAppInstallation | New-GitHubAppInstallationAccessToken | ForEach-Object {
531-
Connect-GitHub -Token $_.token -Silent
533+
LogGroup 'Connect to all installations of the app' {
534+
Connect-GitHubApp
535+
}
536+
537+
LogGroup 'Contexts' {
532538
Get-GitHubContext | Format-Table -AutoSize | Out-String
539+
}
540+
541+
LogGroup 'GitConfig' {
533542
Get-GitHubGitConfig | Format-Table -AutoSize | Out-String
534-
}
535543
}
536544
537545
ActionTestPreserveCredentialsFalse:

0 commit comments

Comments
 (0)