From 7722aa3f7d8503b971edc3ef807940c08fd3f454 Mon Sep 17 00:00:00 2001 From: Bob Date: Tue, 25 Aug 2026 11:10:48 +0000 Subject: [PATCH] ci(release): fail the release job when the changelog is empty v0.14.0b2 was published with an empty body: `body_path` was commented out, so nothing generated release_notes.md and the release went out blank. #238 wired up the generator; this makes the failure loud if it ever regresses, instead of shipping a release with no changelog. Part of #236. --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bfedb4b8..e52a909e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -524,6 +524,13 @@ jobs: --range "$LAST_RELEASE...$GITHUB_REF_NAME" \ --output release_notes.md cat release_notes.md + # v0.14.0b2 shipped with an empty changelog because nothing generated + # release_notes.md. Fail loudly here rather than publishing a release + # whose body is silently blank. + if [ ! -s release_notes.md ]; then + echo "::error::release_notes.md is empty — refusing to publish a release with no changelog" + exit 1 + fi # create a release - name: Release