fix: workflow YAML broken by blank lines inside --notes string
All checks were successful
Mirror to GitHub / mirror (push) Successful in 2s

Blank lines inside a shell double-quoted string within a YAML literal
block cause the YAML parser to end the block early. Write the release
notes to a temp file with printf and pass --notes-file instead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FHr5CeufsAfTrt41XoApir
This commit is contained in:
Breadway 2026-06-18 21:00:24 +08:00
parent a32f5bf81a
commit e1b82c62f7

View file

@ -194,13 +194,12 @@ jobs:
VERSION="${{ steps.vars.outputs.version }}" VERSION="${{ steps.vars.outputs.version }}"
FORGEJO_URL="https://git.breadway.dev/${GITHUB_REPOSITORY}/releases/tag/${TAG}" FORGEJO_URL="https://git.breadway.dev/${GITHUB_REPOSITORY}/releases/tag/${TAG}"
printf '**Download ISO:** %s\n\nGitHub releases cannot host files >2 GB; the `bos-%s-x86_64.iso` (~2.5 GB) is on Forgejo.\n\nSee the [README](https://github.com/Breadway/bos#testing-in-a-vm) for VM testing instructions.' \
"${FORGEJO_URL}" "${VERSION}" > /tmp/gh-release-notes.md
gh release create "${TAG}" \ gh release create "${TAG}" \
--repo "Breadway/bos" \ --repo "Breadway/bos" \
--title "BOS ${TAG}" \ --title "BOS ${TAG}" \
--prerelease \ --prerelease \
--notes "**Download ISO:** ${FORGEJO_URL} --notes-file /tmp/gh-release-notes.md \
GitHub releases cannot host files larger than 2 GB; the \`bos-${VERSION}-x86_64.iso\` (≈2.5 GB) is attached to the Forgejo release linked above.
See the [README](https://github.com/Breadway/bos#testing-in-a-vm) for VM testing instructions and [known limitations](https://github.com/Breadway/bos#known-limitations)." \
2>/dev/null || echo "GitHub release already exists — skipping" 2>/dev/null || echo "GitHub release already exists — skipping"