Skip to content

release: add workflow_dispatch trigger - #8

Merged
sahil-noon merged 1 commit into
mainfrom
release-workflow-dispatch
May 16, 2026
Merged

sahil-noon merged 1 commit into
mainfrom
release-workflow-dispatch

Conversation

@sahil-noon

Copy link
Copy Markdown
Collaborator

Summary

Phase 2 of the toolkit-wide release-pipeline cleanup. The Release workflow can now be triggered manually from the Actions tab with a bump input (patch/minor/major, default patch). The existing tag-push trigger is preserved — both paths share the same build/release/tap-update steps.

On manual dispatch:

  1. Checks out main
  2. Runs scripts/release.sh to compute the next tag and push it
  3. Continues with the existing build/release/tap-update steps in the same workflow run

No cascade is needed because the tag-create step lives in the same workflow — GITHUB_TOKEN-pushed tags don't trigger another on: push: tags run, but we don't need them to.

Downstream steps that previously read \$GITHUB_REF directly now read steps.version.outputs.tag, so both trigger paths converge on the same code.

Test plan

  • Tag-push path: cut a release locally with just release patch — should behave exactly as before.
  • workflow_dispatch path: Actions → Release → "Run workflow", pick patch, confirm the run tags, builds, and updates the Homebrew tap.
  • workflow_dispatch from a branch other than main: rejected by the job-level if: guard.

The Release workflow can now be triggered manually from the Actions
tab with a 'bump' input (patch/minor/major, default patch). The
existing tag-push trigger is preserved.

Downstream steps that previously read \$GITHUB_REF directly now read
steps.version.outputs.tag so both trigger paths share the same code.
@sahil-noon
sahil-noon merged commit defbc18 into main May 16, 2026
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