Skip to content

Release mechanism cleanup: fix deprecation warnings and remove dead code - #919

Open
dominiquemetz wants to merge 3 commits into
masterfrom
release-mechanism-cleanup
Open

Release mechanism cleanup: fix deprecation warnings and remove dead code#919
dominiquemetz wants to merge 3 commits into
masterfrom
release-mechanism-cleanup

Conversation

@dominiquemetz

@dominiquemetz dominiquemetz commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

The `release-charts` workflow's `upload` job emitted two deprecation warnings on every run. While fixing them, the surrounding dead code from the abandoned automatic version-bump mechanism turned out to be intertwined, so this PR cleans up the whole release mechanism in one go.

What & why

1. Fix deprecation warnings (commit `c536a78`)

The `upload` job used action versions targeting Node.js 20 (deprecated on GitHub Actions runners) and the deprecated `set-output` command. Bumped to the latest majors, all of which run on Node.js 24 and use `$GITHUB_OUTPUT`:

Action Before After
`actions/checkout` `@v2` `@v7`
`azure/setup-helm` `@v1` (node12, used `set-output`) `@v5`
`docker/login-action` `@v3` `@v4`
`helm/chart-releaser-action` `@v1.5.0` (used `set-output`) `@v1.7.0`

Inputs used by this workflow (`version`, `charts_dir`) are unchanged across these versions, so behavior is preserved.

2. Remove dead code from the release workflow (commit `fce3ad5`)

Removed from `.github/workflows/release-charts.yaml`:

  • The commented-out `on:` triggers (push to `master` + Friday 4 PM cron)
  • The entire commented-out `bump-versions` job
  • The `needs`/`if` gating on the `upload` job (only meaningful with the bump job)

These were all part of the abandoned auto-bump mechanism and referenced `actions/checkout@v2` plus the custom `bumpVersionAction` — uncommenting them would have reintroduced both deprecation warnings. A one-line comment documents the current manual-bump policy next to the trigger it explains.

3. Remove orphaned auto-bump infrastructure (commit `5be7141`)

With the bump job gone, the following were unreferenced and are deleted:

  • `.github/actions/bumpVersionAction/` — `action.yml`, `bump-version.py`, `Dockerfile`, `README.md`
  • `charts/{keycloak,keycloakx,mailhog}/.bumpversion.cfg`

Also rewrote `.github/pull_request_template.md`, which still told contributors that version bumps happen automatically based on commit-message keywords (`major`/`feat`/`chore`) and linked to a `scripts/bump-version.py` path that never existed. It now reflects the manual-bump policy.

@dominiquemetz
dominiquemetz requested a review from a team as a code owner August 18, 2026 07:53
@github-actions github-actions Bot added the Repo label Aug 18, 2026
Update the upload job in release-charts.yaml to use action versions
that target Node.js 24 (resolving the Node.js 20 deprecation warning)
and no longer rely on the deprecated  command:

- actions/checkout v2  -> v7  (node24)
- azure/setup-helm v1  -> v5  (node24; v1 was on node12)
- docker/login-action v3 -> v4 (node24)
- helm/chart-releaser-action v1.5.0 -> v1.7.0 (uses $GITHUB_OUTPUT)

The `version` (setup-helm) and `charts_dir` (chart-releaser) inputs
are unchanged, so workflow behavior is preserved.

Signed-off-by: Dominique Metz <dominique.metz@codecentric.de>
Drop the commented-out automatic triggers (push/cron), the entire
bump-versions job, and the needs/if gating on the upload job. These
referenced the abandoned auto-bump mechanism (actions/checkout@v2
plus the custom bumpVersionAction, which uses the deprecated
set-output) and would reintroduce the warnings fixed in the previous
commit if uncommented.

Keep a one-line comment documenting the manual-bump policy next to
the trigger it explains.

Signed-off-by: Dominique Metz <dominique.metz@codecentric.de>
Delete the bumpVersionAction custom action (action.yml, bump-version.py,
Dockerfile, README) and the per-chart .bumpversion.cfg files for
keycloak, keycloakx, and mailhog. Nothing references these since the
automatic version-bump job was removed from the release workflow.

Also update the pull request template: it still told contributors that
version bumps happen automatically based on commit-message keywords
(major/feat/chore) and pointed at a scripts/bump-version.py path that
never existed. Rewrite it to reflect the current manual-bump policy.

Signed-off-by: Dominique Metz <dominique.metz@codecentric.de>
@dominiquemetz
dominiquemetz force-pushed the release-mechanism-cleanup branch from 5be7141 to bee6991 Compare August 18, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant