Skip to content

fix(GHA): use inputs.ref for publish eligibility in cli.yml#2299

Merged
morri-son merged 2 commits into
open-component-model:releases/v0.4from
morri-son:cherry-pick/cli-publish-fix
Apr 15, 2026
Merged

fix(GHA): use inputs.ref for publish eligibility in cli.yml#2299
morri-son merged 2 commits into
open-component-model:releases/v0.4from
morri-son:cherry-pick/cli-publish-fix

Conversation

@morri-son

Copy link
Copy Markdown
Contributor

Summary

Cherry-pick of #2297 to releases/v0.4.

  • Fix publish eligibility check in cli.yml to use inputs.ref (RC tag) instead of GITHUB_REF_NAME (branch) for workflow_call triggers
  • Add documentation for workflow_call ref inheritance behavior across release workflows

When cli-release.yml calls cli.yml via workflow_call, GITHUB_REF_NAME
inherits the caller's ref (releases/v0.4) instead of the RC tag
(cli/v0.4.0-rc.1). The branch-check only allowed publishing for main
or cli/v* refs, so releases dispatched from release branches skipped
the Publish and Attest job entirely.

Use inputs.ref (the RC tag passed by cli-release.yml) when available,
falling back to GITHUB_REF_NAME for direct push/tag triggers.

Also update RELEASE_PROCESS.md to replace the removed "Branch to
release from" input reference with "Use workflow from" branch selector.

Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
Add comments explaining the dispatch model and github.ref_name behavior
across the cli-release.yml → cli.yml workflow_call boundary.

Key documentation:
- cli-release.yml: operator must select releases/v* in "Use workflow from"
- cli-release.yml build job: inputs.ref carries the RC tag, not the branch
- cli.yml top: dual-role (CI + reusable) and ref inheritance caveat
- cli.yml branch-check: publish eligibility table for all trigger scenarios

Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
@morri-son morri-son requested a review from a team as a code owner April 15, 2026 13:33
@coderabbitai

coderabbitai Bot commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: da91fd08-59c1-4091-ab88-ca0a312af0a5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added kind/bugfix Bug size/s Small component/github-actions Changes on GitHub Actions or within `.github/` directory labels Apr 15, 2026
@morri-son morri-son enabled auto-merge (squash) April 15, 2026 13:34
@morri-son morri-son merged commit 99c44b5 into open-component-model:releases/v0.4 Apr 15, 2026
16 checks passed
@morri-son morri-son deleted the cherry-pick/cli-publish-fix branch April 23, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/github-actions Changes on GitHub Actions or within `.github/` directory kind/bugfix Bug size/s Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants