Skip to content

ci: forward bump input to reusable release workflow#15

Merged
CybotTM merged 1 commit intomainfrom
ci/forward-bump-input
Apr 22, 2026
Merged

ci: forward bump input to reusable release workflow#15
CybotTM merged 1 commit intomainfrom
ci/forward-bump-input

Conversation

@CybotTM
Copy link
Copy Markdown
Member

@CybotTM CybotTM commented Apr 22, 2026

Declare the bump input on workflow_dispatch and forward it to the reusable release workflow via with:.

Without this, gh workflow run release.yml --field bump=minor fails with Unexpected inputs provided: ["bump"], forcing manual tag+bump work outside the workflow.

Tag-push releases are unaffected — inputs.bump is empty, which the reusable workflow's bump job treats as skip.

…kflow

The caller workflow defined workflow_dispatch without inputs, so
'gh workflow run release.yml --field bump=...' failed with
'Unexpected inputs provided: ["bump"]'. Declare the bump input on
the caller and forward it via 'with:' to the reusable workflow.

Tag push still works unchanged — inputs.bump is empty, which the
reusable workflow's bump job treats as a no-op.
Copilot AI review requested due to automatic review settings April 22, 2026 10:53
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@CybotTM CybotTM merged commit a962cf5 into main Apr 22, 2026
6 checks passed
@CybotTM CybotTM deleted the ci/forward-bump-input branch April 22, 2026 10:53
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a bump input to the manually-dispatched release workflow and forwards it into the reusable release workflow to support gh workflow run ... --field bump=....

Changes:

  • Declares workflow_dispatch.inputs.bump as a choice input (patch/minor/major).
  • Forwards inputs.bump to the reusable release workflow via jobs.release.with.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 23 to 25
permissions:
id-token: write
attestations: write
contents: write
pull-requests: write
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change also removes id-token: write and attestations: write from the job permissions (not mentioned in the PR description). If the reusable release workflow relies on OIDC (e.g., for signing/publishing) or artifact attestations, the release may fail at runtime. Consider restoring those permissions (or explicitly documenting why they’re no longer needed) to keep the change scoped to forwarding bump.

Copilot uses AI. Check for mistakes.
Comment on lines +11 to +16
required: true
type: choice
options:
- patch
- minor
- major
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marking bump as required: true changes the manual-dispatch UX: triggering workflow_dispatch now always requires selecting a bump value. If you want to preserve the previous ability to run a manual release without bumping (or to align with the tag-push behavior where inputs.bump is empty/skip), consider making it optional and setting a default (e.g., default: patch) or leaving it non-required so callers can omit it.

Copilot uses AI. Check for mistakes.
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.

2 participants