fix: workflow YAML broken by blank lines inside --notes string
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.
This commit is contained in:
parent
6e82bf25ff
commit
09a2c098ef
1 changed files with 4 additions and 5 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue