From e0d6dc81bdab4ed142caee9f22e4b479fe6cea57 Mon Sep 17 00:00:00 2001 From: Ivan Bochkarev Date: Wed, 29 Jul 2026 15:09:30 +0600 Subject: [PATCH] fix(release): match changelog headings with optional -pl suffix Tag v2.0.1 left release notes empty because changelog uses [2.0.1-pl]. --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b22cb3..a16477c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -124,11 +124,16 @@ jobs: - name: Prepare release notes run: | VERSION="${GITHUB_REF_NAME#v}" + # Changelog headings are like [2.0.1-pl]; tag may be v2.0.1 or v2.0.1-pl awk -v ver="$VERSION" ' - $0 ~ "^## \\[" ver "\\]" {print; show=1; next} + $0 ~ "^## \[" ver "(-pl)?\]" {print; show=1; next} show && /^## \[/ {exit} show {print} ' core/components/sendex/docs/changelog.txt > release-notes.md + if ! grep -q . release-notes.md; then + echo "WARN: no changelog section for ${VERSION}; using compare link fallback" >&2 + echo "**Full Changelog**: https://github.com/${GITHUB_REPOSITORY}/compare/v${VERSION}" > release-notes.md + fi - name: Publish GitHub release uses: softprops/action-gh-release@v2