Skip to content

Commit 5148bc4

Browse files
fix(scripts): improve YAML output formatting for Goose recipes
1 parent 7ff5780 commit 5148bc4

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎.github/workflows/scripts/create-release-packages.ps1‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,10 @@ function Generate-Commands {
177177
'yaml' {
178178
# Generate Goose recipe format YAML
179179
$title = (Get-Culture).TextInfo.ToTitleCase($name)
180-
$escapedBody = $body -replace '"', '`"'
181-
$escapedBody = $escapedBody -replace "`n", '\n'
182180
$output = @"
183181
version: 1.0.0
184182
title: "$title"
185183
description: "$description"
186-
instructions: "$description"
187184
author:
188185
contact: "spec-kit"
189186
extensions:
@@ -192,8 +189,10 @@ extensions:
192189
activities:
193190
- "Spec-Driven Development"
194191
prompt: |
195-
$body
196192
"@
193+
# Indent each line of body for proper YAML block scalar formatting
194+
$indentedBody = $body -split "`n" | ForEach-Object { " $_" } | Join-String -Separator "`n"
195+
$output += "`n$indentedBody"
197196
Set-Content -Path $outputFile -Value $output -NoNewline
198197
}
199198
}

0 commit comments

Comments
 (0)