Skip to content

ci: allow merging chart changes without a version bump - #94

Merged
secana merged 1 commit into
mainfrom
ci/allow-merge-without-version-bump
Sep 1, 2026
Merged

ci: allow merging chart changes without a version bump#94
secana merged 1 commit into
mainfrom
ci/allow-merge-without-version-bump

Conversation

@secana

@secana secana commented Sep 1, 2026

Copy link
Copy Markdown
Member

A pull request should be mergeable without bumping the chart version. The change then simply is not released, and ships with the next bump. Requiring a bump per pull request forces a chart release for every merge.

ct lint no longer requires a bump

check-version-increment defaults to true, which is what fails #93 today:

Checking chart "kellnr" for a version bump...
Old chart version: 6.1.7
New chart version: 6.1.7
✖︎ chart version not ok. Needs a version bump!

Disabled in .github/ct.yaml. Everything else ct lint does (helm lint, yamllint, Chart.yaml validation, schema checks) is unaffected.

chart-releaser skips the already released version

This half is needed to keep the first half from just moving the failure to main. chart-releaser-action selects charts by diffing the latest tag against HEAD, not by comparing versions, so a merge that touches charts/ without a bump still counts as changed: it repackages 6.1.7 and tries to upload it, and the release kellnr-6.1.7 already exists. Without skip_existing that aborts the release job.

With skip_existing: true the upload is skipped, the published release is left untouched, and nothing new is created.

Verification

Ran ct 3.14.0 locally, the same version the CI job uses:

Both changed YAML files parse.

Note

Releases now need a deliberate bump. Nothing prompts for one any more, so chart changes merged without a bump stay unreleased until the next repository_dispatch from a kellnr release bumps the patch and ships everything accumulated since.

`ct lint` enforced a version increment on every pull request touching the
chart, so each merge had to ship a chart release. Disable the check.

A merge without a bump must not break the release job either. chart-releaser
picks changed charts by diffing the latest tag against HEAD rather than by
comparing versions, so it repackages the unchanged version and aborts on the
already existing release. Pass `skip_existing` so the upload is skipped, the
published release stays untouched, and the changes ship with the next bump.
@secana
secana merged commit ecb923a into main Sep 1, 2026
1 check passed
@secana
secana deleted the ci/allow-merge-without-version-bump branch September 1, 2026 16:40
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.

1 participant