-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add manual release trigger #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,12 @@ name: release-please | |
| on: | ||
| push: | ||
| branches: [main] | ||
| workflow_dispatch: | ||
| inputs: | ||
| release_as: | ||
| description: 'Optional version to force, for example 1.10.0. Leave empty to use Conventional Commits.' | ||
| type: string | ||
| required: false | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
@@ -21,6 +27,7 @@ jobs: | |
| id: release | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| release-as: ${{ inputs.release_as || '' }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When a manual run supplies Useful? React with 👍 / 👎. |
||
|
|
||
| # Move the moving major tag here rather than in release-major-tag.yml: a | ||
| # release created with GITHUB_TOKEN does NOT trigger other workflows, so the | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a maintainer selects a non-
mainbranch in the workflow-dispatch branch picker, the action's omittedtarget-branchinput 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 tomain; settarget-branch: mainor reject dispatches whose ref is notmain.Useful? React with 👍 / 👎.