Skip to content

Fix duplicate releases - #192

Merged
jamiecobbett merged 1 commit into
masterfrom
fix-changelog-notes-extraction
Aug 13, 2026
Merged

Fix duplicate releases#192
jamiecobbett merged 1 commit into
masterfrom
fix-changelog-notes-extraction

Conversation

@jamiecobbett

@jamiecobbett jamiecobbett commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

When a change was pushed down from client-library-templates, the flow in here created 3 releases instead of 1.

They also had the description repeated within each release.

This is because:

  • steps.check.outputs.version doesn't exist — the check step only outputs should_release. The version comes from the version step (steps.version.outputs.version), which is already referenced correctly elsewhere in this file.
  • With VERSION empty, the awk extraction's start pattern (^## + empty string) matched every version header in CHANGELOG.md, and next fired before the exit rule ever got a chance to run, so notes from older releases kept bleeding into newer ones.

The "check" step only sets a "should_release" output, not "version" - the
version comes from the earlier "version" step. Referencing the wrong step
left VERSION empty, which made the awk pattern match every "## " changelog
header instead of just the target version's, so notes for older releases
kept bleeding into newer ones (see v8.6.2 and v8.6.3 release notes).
@jamiecobbett jamiecobbett changed the title Fix version reference in changelog notes extraction Fix duplicate releases Aug 13, 2026
@jamiecobbett
jamiecobbett merged commit 1b63ad6 into master Aug 13, 2026
7 checks passed
@jamiecobbett
jamiecobbett deleted the fix-changelog-notes-extraction branch August 13, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants