Skip to content

Commit b049f51

Browse files
committed
Add multiline support for CI task
1 parent cf2c78c commit b049f51

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

psake.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,9 @@ Task CI -Depends Package -Description "Run CI task for GitHub Actions" {
148148
Write-Host "::notice::Changelog title: $title"
149149
Write-Host "::notice::Changelog body: $body"
150150
Add-Content -Path $outputFile -Value "changelog_title=$title"
151-
Add-Content -Path $outputFile -Value "changelog_body=$body"
151+
# Multiline is tricky: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands#example-of-a-multiline-string
152+
$EOF = (New-Guid).Guid
153+
Add-Content -Path $outputFile -Value "changelog_body<<$EOF"
154+
Add-Content -Path $outputFile -Value "$body"
155+
Add-Content -Path $outputFile -Value "$EOF"
152156
}

0 commit comments

Comments
 (0)