Skip to content

[logging.ps1] Align escape chars with @actions/code #13699

@mikeharder

Description

@mikeharder

In this code:

if (Test-SupportsGitHubLogging) {
Write-Host ("::notice::$args" -replace "`n", "%0D%0A")
}

We should escape all the same chars as this code:

https://github.com/actions/toolkit/blob/b77f226465daf6a62092ce8fa42fb7d765bbf3d5/packages/core/src/command.ts#L103

Metadata

Metadata

Assignees

Labels

needs-triageWorkflow: This is a new issue that needs to be triaged to the appropriate team.

Type

No type

Projects

Status

🐝 Dev

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions