Skip to content

Commit 2280da8

Browse files
🩹 [Enhancement]: Add logging for headers retrieved from GitHub repository in workflow
1 parent 2df9a20 commit 2280da8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎.github/workflows/TestWorkflow.yml‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,14 @@ jobs:
5757
ShowInit: true
5858
ShowOutput: true
5959
Script: |
60-
LogGroup "Get header from Get-GitHubUser" {
61-
$results = Invoke-GithubAPI -APIEndpoint "/user" -Debug -Verbose
60+
# LogGroup "Get header from Get-GitHubUser" {
61+
# $results = Invoke-GithubAPI -APIEndpoint "/user" -Debug -Verbose
62+
# $headers = $results.headers
63+
# Write-Host "$($headers | Format-List | Out-String)"
64+
# }
65+
66+
LogGroup "Get header from Get-GitHubRepository" {
67+
$results = Invoke-GithubAPI -APIEndpoint "/repos/${{ github.repository }}" -Debug -Verbose
6268
$headers = $results.headers
6369
Write-Host "$($headers | Format-List | Out-String)"
6470
}

0 commit comments

Comments
 (0)