Skip to content

Commit 26ae81e

Browse files
committed
Fix command process
1 parent 1a2fa1f commit 26ae81e

File tree

1 file changed

+8
-1
lines changed
  • hugoalh.GitHubActionsToolkit/module

1 file changed

+8
-1
lines changed

hugoalh.GitHubActionsToolkit/module/log.psm1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,14 @@ Function Write-Annotation {
9898
$Parameter.('title') = $Title
9999
}
100100
If ($Message.Length -gt $AnnotationMessageLengthMaximum -and $Summary.Length -gt 0) {
101-
Write-Host -Object $Message
101+
If ($Message -imatch '^::') {
102+
[String]$EndToken = Disable-GitHubActionsStdOutCommandProcess
103+
Write-Host -Object $Message
104+
Enable-GitHubActionsStdOutCommandProcess -EndToken $EndToken
105+
}
106+
Else {
107+
Write-Host -Object $Message
108+
}
102109
Write-GitHubActionsStdOutCommand -StdOutCommand $Type -Parameter $Parameter -Value $Summary
103110
}
104111
Else {

0 commit comments

Comments
 (0)