Skip to content

Commit 0cb61f9

Browse files
🩹 [Patch]: Make outputs not break line (#10)
## Description This pull request includes changes to the `scripts/main.ps1` file to improve the formatting and output rendering of the script. The most important changes include setting the output rendering style to 'Ansi' and ensuring the formatted list is converted to a string before being output. Improvements to output formatting: * `scripts/main.ps1`: * Set `$PSStyle.OutputRendering` to 'Ansi' to ensure proper output rendering. * Modified the pipeline to convert the formatted list to a string using `Out-String` before outputting it. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 70f5b12 commit 0cb61f9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/main.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
[CmdletBinding()]
66
param()
77

8+
$PSStyle.OutputRendering = 'Ansi'
9+
810
LogGroup 'Issue Body - Raw' {
911
Write-Output $env:GITHUB_ACTION_INPUT_IssueBody
1012
}
1113

1214
LogGroup 'Issue Body - Object' {
1315
$data = $env:GITHUB_ACTION_INPUT_IssueBody | ConvertFrom-IssueForm
14-
$data | Format-List
16+
$data | Format-List | Out-String
1517
Set-GitHubOutput -Name 'data' -Value $data
1618
}

0 commit comments

Comments
 (0)