From e1b82c62f7ada4d5228a9383dcc1895f7ecf7e03 Mon Sep 17 00:00:00 2001 From: Breadway Date: Thu, 18 Jun 2026 21:00:24 +0800 Subject: [PATCH] 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. Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01FHr5CeufsAfTrt41XoApir --- .forgejo/workflows/release-iso.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/release-iso.yml b/.forgejo/workflows/release-iso.yml index dcd36e5..8025026 100644 --- a/.forgejo/workflows/release-iso.yml +++ b/.forgejo/workflows/release-iso.yml @@ -194,13 +194,12 @@ jobs: VERSION="${{ steps.vars.outputs.version }}" 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}" \ --repo "Breadway/bos" \ --title "BOS ${TAG}" \ --prerelease \ - --notes "**Download ISO:** ${FORGEJO_URL} - -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)." \ + --notes-file /tmp/gh-release-notes.md \ 2>/dev/null || echo "GitHub release already exists — skipping"