Skip to content

Commit d504741

Browse files
🩹 [Patch]: Add logging commands for GitHub Actions workflow
1 parent d5ee054 commit d504741

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/TestWorkflow.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,16 @@ jobs:
154154
Set-GitHubEnvironmentVariable -Name 'OCTOCAT' -Value $cat
155155
}
156156
157+
LogGroup 'Write to GitHub Actions' {
158+
Write-GitHubNotice -Message $zen -Title 'GitHub Zen'
159+
Write-GitHubWarning -Message 'This is a warning message'
160+
Write-GitHubError -Message 'This is an error message'
161+
Write-GitHubDebug -Message 'This is a debug message'
162+
Write-GitHubLog -Message 'This is' -ForegroundColor Blue -NoNewLine
163+
Write-GitHubLog -Message ' a ' -BackgroundColor Red -NoNewLine
164+
Write-GitHubLog -Message 'log message' -ForegroundColor Green -BackgroundColor Yellow
165+
}
166+
157167
LogGroup 'Set outputs - WISECAT' {
158168
Set-GitHubOutput -Name 'WISECAT' -Value $cat
159169
}

0 commit comments

Comments
 (0)