Skip to content

ci: update GitHub Actions to Node 24 runtime & drop battila7/get-version-action - #326

Open
BWibo wants to merge 2 commits into
masterfrom
ci/node24-action-updates
Open

ci: update GitHub Actions to Node 24 runtime & drop battila7/get-version-action#326
BWibo wants to merge 2 commits into
masterfrom
ci/node24-action-updates

Conversation

@BWibo

@BWibo BWibo commented Jul 8, 2026

Copy link
Copy Markdown
Member

Why

GitHub Actions runners now default to Node.js 24 (since 2026-06-16) and the Node.js 20 runtime is being removed (2026-09-16). Several actions in our workflows still declare node20 (or older) in their action.yml, so the pipelines emit the Node.js 20 deprecation warning.

battila7/get-version-action@v2 additionally declares the ancient node12 runtime and internally uses the deprecated set-output command, so it triggers both the Node.js and set-output deprecation warnings.

gradle/gradle-build-action@v2 is a deprecated action (node16) superseded by gradle/actions/setup-gradle.

What

Commit 1 — bump actions to Node 24 native versions (verified against each target tag's action.yml runs.using: node24):

Action Old New
actions/checkout v4 v5
actions/setup-java v3 v5
docker/login-action v3 v4
docker/build-push-action v6 v7
benjlevesque/short-sha v3.0 v4.0
gradle/gradle-build-action v2 → gradle/actions/setup-gradle@v5

The gradle migration is a drop-in: the cache-disabled input is preserved and the build still runs via the separate ./gradlew build step.

Commit 2 — replace battila7/get-version-action in both release workflows with a POSIX shell step that derives the version from the release tag and writes to $GITHUB_OUTPUT. version / version-without-v outputs are preserved, so downstream references are unchanged. This clears the set-output deprecation.

Validation

  • YAML parsed for every changed workflow.
  • actionlint clean.
  • Replacement shell logic unit-tested for v1.2.3 / 1.2.3 tag forms.
  • impexp-build (push/PR) exercises the checkout / setup-java / setup-gradle bumps live in this PR.

BWibo added 2 commits July 9, 2026 00:07
GitHub Actions runners now default to Node.js 24 and are removing the
Node.js 20 runtime. Bump all actions that still declare node20 (or older)
to their Node 24 native major versions to clear the deprecation warnings:

- actions/checkout v4 -> v5
- actions/setup-java v3 -> v5
- docker/login-action v3 -> v4
- docker/build-push-action v6 -> v7
- benjlevesque/short-sha v3.0 -> v4.0

Also migrate the deprecated gradle/gradle-build-action@v2 (node16) to
gradle/actions/setup-gradle@v5; the cache-disabled input is preserved and
the build still runs via a separate ./gradlew step.
battila7/get-version-action@v2 declares the ancient node12 runtime and
internally uses the deprecated `set-output` workflow command, so it emits
both the Node.js and set-output deprecation warnings. Replace it in both
release workflows with a small POSIX shell step that derives the version
from the release tag and writes to $GITHUB_OUTPUT, preserving the existing
`version` and `version-without-v` outputs so downstream references are
unchanged.
@BWibo BWibo self-assigned this Jul 9, 2026
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