Skip to content

ci: call the reusable release-please workflow - #4

Merged
TheMeinerLP merged 1 commit into
mainfrom
ci/reusable-release-please
Aug 4, 2026
Merged

ci: call the reusable release-please workflow#4
TheMeinerLP merged 1 commit into
mainfrom
ci/reusable-release-please

Conversation

@TheMeinerLP

Copy link
Copy Markdown

Replaces the last inline job in CI with the shared workflow, now that it can carry the gating output.

Why this was blocked

release-please.yml forwarded none of the action's outputs, while the publish job is gated on:

if: needs.release-please.outputs.release_created == 'true'

Switching over before that was fixed would have left the condition permanently false — releases tagged, nothing published. OneLiteFeatherNET/workflows#21 added the outputs and shipped as v2.5.0.

Changes

  • release-please.yaml calls release-please.yml@v2.5.0 instead of running googleapis/release-please-action@v5 inline.
  • All four pins move to v2.5.0, so every workflow here points at one version of the shared catalogue.
  • The permissions block stays on the caller — a called workflow never holds more permissions than the calling one, so removing contents: write / pull-requests: write would leave release-please unable to open its release PR.

Verified

Against the tag, not assumed:

  • release-please.yml@v2.5.0 exports release_created — the only output this workflow consumes.
  • gradle-publish.yml@v2.5.0 still accepts java-version and java-distribution.
  • All workflow files parse as valid YAML.

No behaviour change intended: same trigger, same gating, same publish inputs.

The inline job existed because the reusable one forwarded none of the
action's outputs, and the publish job is gated on release_created.
OneLiteFeatherNET/workflows#21 added them, released as v2.5.0, so the last
inline piece of CI can go.

All pins move to v2.5.0 in the same step, so every workflow in this
repository references one version of the shared catalogue.

The permissions block stays on the caller: a called workflow never holds
more permissions than the calling one, so dropping contents/pull-requests
write here would leave release-please unable to open its release PR.

Checked against the tag rather than assumed: v2.5.0 exports release_created,
and gradle-publish.yml@v2.5.0 still accepts java-version and
java-distribution.
@TheMeinerLP
TheMeinerLP merged commit 4e9cfcd into main Aug 4, 2026
6 checks passed
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