Skip to content

[TW-4723] ci(release): add workflow_dispatch trigger for one-click releases#40

Merged
AaronDDM merged 1 commit intomainfrom
ad-TW-4723-release-workflow-dispatch
Mar 26, 2026
Merged

[TW-4723] ci(release): add workflow_dispatch trigger for one-click releases#40
AaronDDM merged 1 commit intomainfrom
ad-TW-4723-release-workflow-dispatch

Conversation

@AaronDDM
Copy link
Copy Markdown
Collaborator

Summary

Add a workflow_dispatch trigger to the release GitHub Action so releases can be performed from the GitHub UI or gh CLI without manually creating and pushing git tags.

Changes

  • Add workflow_dispatch trigger with version input (semver, no v prefix) and dry_run boolean option
  • Validate semver format before proceeding
  • Check for duplicate tags before creating
  • Create and push git tag automatically during the workflow
  • Support GoReleaser --snapshot mode for dry runs (build without publishing)
  • Use environment variables for all user inputs in run: blocks to prevent command injection
  • Add explicit tag_name to softprops/action-gh-release for dispatch triggers

Usage

# Release
gh workflow run release.yml -f version=1.2.3

# Dry run (build + validate, no publish)
gh workflow run release.yml -f version=1.2.3 -f dry_run=true

Or use the "Run workflow" button in the GitHub Actions UI.

Testing

  • Trigger dry run via gh workflow run release.yml -f version=0.0.0-test.1 -f dry_run=true
  • Verify tag push still triggers the workflow as before
  • Verify invalid version format is rejected (e.g., abc, v1.2.3)
  • Verify duplicate tag is rejected

Related

  • TW-4723

…leases

- Add workflow_dispatch trigger with version input and dry_run option
- Validate semver format before proceeding
- Check for duplicate tags before creating
- Create and push git tag automatically during workflow
- Support GoReleaser --snapshot mode for dry runs
- Use env vars for all inputs in run blocks to prevent command injection
- Add explicit tag_name to gh-release upload for dispatch triggers
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@AaronDDM AaronDDM self-assigned this Mar 26, 2026
@AaronDDM AaronDDM requested a review from qasim-nylas March 26, 2026 13:27
@AaronDDM AaronDDM merged commit 5d7a3ee into main Mar 26, 2026
6 checks passed
@AaronDDM AaronDDM deleted the ad-TW-4723-release-workflow-dispatch branch March 26, 2026 14:06
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