Skip to content

feat: add manual release trigger - #71

Merged
ivanmilevtues merged 1 commit into
mainfrom
feat/manual-release-trigger
Aug 4, 2026
Merged

feat: add manual release trigger#71
ivanmilevtues merged 1 commit into
mainfrom
feat/manual-release-trigger

Conversation

@ivanmilevtues

Copy link
Copy Markdown
Member

Summary

  • add a manual workflow_dispatch trigger to the release-please workflow
  • accept an optional release_as version to force a release PR when Conventional Commit detection cannot infer one
  • preserve the existing automatic push-to-main behavior when no version is supplied

Usage

Open Actions → release-please → Run workflow and enter a version such as 1.10.0. Leave it empty to run normal Conventional Commit detection.

Validation

  • git diff --check
  • actionlint and pre-commit run in PR CI (not installed in the local environment)

@codeboarding-review

Copy link
Copy Markdown
Contributor

Architecture review · analyzing…

⏳ CodeBoarding is analyzing the architecture changes in this PR. This usually takes a few minutes.

codeboarding-action · run 30891184024

@ivanmilevtues
ivanmilevtues merged commit 52b4bc3 into main Aug 4, 2026
2 of 3 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 246707b3f5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-as: ${{ inputs.release_as || '' }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Pass the forced version through a supported mechanism

When a manual run supplies release_as, googleapis/release-please-action@v4 does not declare or consume a release-as input; it is absent from the action's v4 input metadata. GitHub therefore reports this as an unexpected input and the action falls back to ordinary manifest/Conventional Commit detection, so the requested version can be silently ignored and the run may create no release PR or propose the wrong version. Use a supported release-please configuration or CLI mechanism to apply the forced version.

Useful? React with 👍 / 👎.

on:
push:
branches: [main]
workflow_dispatch:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Pin manually dispatched releases to main

When a maintainer selects a non-main branch in the workflow-dispatch branch picker, the action's omitted target-branch input defaults to the branch on which the workflow is running, as documented in the v4 action inputs. Repeated manual runs can therefore prepare and publish a release from a feature branch even though the existing automatic trigger is intentionally restricted to main; set target-branch: main or reject dispatches whose ref is not main.

Useful? React with 👍 / 👎.

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