Skip to content

Commit 4fbbd20

Browse files
committed
fix: use heredoc for VSX release notes to avoid YAML syntax error
Triple backticks in the inline string broke YAML parsing. Use a heredoc piped to a temp file instead, matching the pattern used elsewhere in the workflow.
1 parent 63bcb49 commit 4fbbd20

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/publish.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -480,20 +480,24 @@ jobs:
480480
481481
VSX_CHANGELOG=$(extract_latest packages/b2c-vs-extension/CHANGELOG.md)
482482
483-
VSX_NOTES="## B2C DX VS Code Extension v${VSX_VERSION}
483+
{
484+
cat <<HEADER
485+
## B2C DX VS Code Extension v${VSX_VERSION}
484486
485-
Download the \`.vsix\` file below and install via:
486-
\`\`\`
487-
code --install-extension b2c-vs-extension-${VSX_VERSION}.vsix
488-
\`\`\`
487+
Download the \`.vsix\` file below and install via:
488+
\`\`\`
489+
code --install-extension b2c-vs-extension-${VSX_VERSION}.vsix
490+
\`\`\`
489491
490-
Or in VS Code: Extensions → ⋯ → Install from VSIX...
492+
Or in VS Code: Extensions → ⋯ → Install from VSIX...
491493
492-
---
494+
---
493495
494-
### Changelog
496+
### Changelog
495497
496-
${VSX_CHANGELOG}"
498+
HEADER
499+
echo "$VSX_CHANGELOG"
500+
} | sed 's/^ //' > /tmp/vsx-release-notes.md
497501
498502
# Create a dedicated release for the extension (not latest — main releases own that)
499503
# Use --clobber on upload in case a previous run partially completed
@@ -504,7 +508,7 @@ ${VSX_CHANGELOG}"
504508
gh release create "$VSX_TAG" \
505509
--title "VS Code Extension ${VSX_VERSION}" \
506510
--latest=false \
507-
--notes "$VSX_NOTES"
511+
--notes-file /tmp/vsx-release-notes.md
508512
509513
gh release upload "$VSX_TAG" packages/b2c-vs-extension/*.vsix
510514
fi

0 commit comments

Comments
 (0)