From 0af1cb4e7661946f985f0ad4ac7372cf8974b9bd Mon Sep 17 00:00:00 2001 From: PD Hall <20580126+pdhall99@users.noreply.github.com> Date: Mon, 23 Nov 2026 13:19:21 +0000 Subject: [PATCH] Add CHANGELOG entries to GitHub Releases --- .github/workflows/ci.yml | 42 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3728ec..3422ee5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -328,6 +328,32 @@ jobs: exit 1 fi + - name: Extract release notes + if: github.ref_type == 'tag' + run: | + mkdir -p release-notes + awk -v heading="## [$GITHUB_REF_NAME]" ' + index($0, heading) == 1 { found = 1; next } + found && (/^## / || /^\[[^]]+\]: /) { exit } + found + ' docs/CHANGELOG.md > release-notes/notes.md + if ! grep -q '[^[:space:]]' release-notes/notes.md; then + echo "docs/CHANGELOG.md has no '## [$GITHUB_REF_NAME]' section" >&2 + exit 1 + fi + cat >> release-notes/notes.md <