Skip to content

Commit bc33dad

Browse files
FBumannclaude
andauthored
ci: add workflow_dispatch with branch and prerelease inputs (#10)
## Summary - Add `workflow_dispatch` trigger with `branch` and `prerelease` inputs - Pass `target-branch` and `prerelease` to the release-please action - Push to main uses config default (`prerelease: true`), dispatch can override ## Test plan - [ ] Trigger workflow manually from Actions tab, verify inputs appear - [ ] Push to main, verify release-please still creates alpha pre-release PRs - [ ] Dispatch with `prerelease: false` for a stable release 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1539dcc commit bc33dad

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ name: Release
33
on:
44
push:
55
branches: [main]
6+
workflow_dispatch:
7+
inputs:
8+
branch:
9+
description: Branch to create the release from
10+
required: true
11+
default: main
12+
prerelease:
13+
description: Create a pre-release
14+
type: boolean
15+
default: true
616

717
permissions:
818
contents: write
@@ -28,6 +38,8 @@ jobs:
2838
config-file: .release-please-config.json
2939
manifest-file: .release-please-manifest.json
3040
token: ${{ steps.app-token.outputs.token }}
41+
target-branch: ${{ inputs.branch || github.ref_name }}
42+
prerelease: ${{ inputs.prerelease }}
3143

3244
publish:
3345
name: Build & publish to PyPI

0 commit comments

Comments
 (0)