Skip to content

Let a release dispatch name the version - #4935

Merged
Mpdreamz merged 1 commit into
mainfrom
feature/release-version-input
Nov 18, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
feature/release-version-input

Conversation

@Mpdreamz

Copy link
Copy Markdown
Member

The Release workflow takes an optional version input that overrides the version release-drafter calculates.

Affects: Automation

Prompt summary: Force a 1.80.0 release after the 1.79.0 attempts left a draft release, a tag and partly deployed artifacts behind.

Why

A release that fails part way leaves a draft release and a tag. Release-drafter reuses both on the next dispatch, so run 44271615615 failed at Create tag (the tag existed) and run 44272054694 failed at gh release upload (the assets existed). The version is always calculated from the last published release, so a dispatch cannot move on to the next version.

What

Version input

workflow_dispatch takes an optional version string, passed to the version: input of release-drafter, which overrides the calculated version. An empty value leaves the calculated version in place, so a dispatch without the input behaves as before.

Risk: A dispatch deploys the containers and the prod Lambdas. A wrong version creates a draft release and a tag with that name.

Verify

gh workflow run release.yml --ref main -f version=1.80.0

A failed release leaves a draft release and a tag that release-drafter reuses, so the next dispatch cannot move to a clean version. The `version` input overrides the calculated version, and an empty input keeps today's behaviour.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@Mpdreamz
Mpdreamz requested a review from a team as a code owner November 18, 2026 09:11
@Mpdreamz Mpdreamz added the automation packaging, ci/cd. label Nov 18, 2026
@Mpdreamz
Mpdreamz requested a review from akira28 November 18, 2026 09:11
@Mpdreamz
Mpdreamz merged commit c0667fd into main Nov 18, 2026
43 of 44 checks passed
@Mpdreamz
Mpdreamz deleted the feature/release-version-input branch November 18, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation packaging, ci/cd.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant