From 76778b8bb65af2cfff09b7caed365869a51690b4 Mon Sep 17 00:00:00 2001 From: David Abutbul Date: Thu, 12 Feb 2026 20:21:51 +0200 Subject: [PATCH] fix: improve changelog extraction logic to handle additional separators and headings --- .github/workflows/skill-release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/skill-release.yml b/.github/workflows/skill-release.yml index 712dac8..9644a0a 100644 --- a/.github/workflows/skill-release.yml +++ b/.github/workflows/skill-release.yml @@ -801,13 +801,14 @@ jobs: fi # Extract the changelog section for this version - # Pattern: ## [VERSION] - DATE ... until next ## [ or end of file + # Pattern: ## [VERSION] - DATE ... until next ## [, separator (---), or any other ## heading CHANGELOG_ENTRY=$(awk -v version="$VERSION" ' BEGIN { in_section = 0; found = 0 } $0 ~ ("^## \\[" version "\\]") { in_section = 1; found = 1; next } - in_section && /^## \[/ && found { exit } + in_section && found && /^---/ { exit } + in_section && found && /^## / { exit } in_section { print } - ' "$SKILL_PATH/CHANGELOG.md") + ' "$SKILL_PATH/CHANGELOG.md" | sed -e :a -e '/^\n*$/{$d;N;ba' -e '}') if [ -z "$CHANGELOG_ENTRY" ]; then echo "No changelog entry found for version $VERSION"