Skip to content

Add workflow_dispatch input support for manual tag releases#11

Merged
HeyItsGilbert merged 2 commits intomainfrom
copilot/fix-10
Aug 19, 2025
Merged

Add workflow_dispatch input support for manual tag releases#11
HeyItsGilbert merged 2 commits intomainfrom
copilot/fix-10

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Aug 19, 2025

The release workflow now supports manual triggering with a custom tag input, allowing users to create releases without needing to push a git tag first.

What Changed

Added inputs.tag parameter to the workflow_dispatch trigger in .github/workflows/release.yaml with enhanced version extraction logic that handles both scenarios:

  • Tag push releases (existing): Works exactly as before when pushing tags like v2.1.0
  • Manual dispatch releases (new): Allows specifying a tag via workflow input

Key Features

  • Flexible input: Accepts tags with or without 'v' prefix (e.g., 'v2.1.0' or '2.1.0')
  • Smart validation: Automatically adds 'v' prefix if missing
  • Proper versioning: Correctly formats versions for changelog lookup vs GitHub release creation
  • No breaking changes: Maintains full backward compatibility

Usage

When manually triggering the workflow, you can now specify the tag to release:

Tag to release: v2.1.0

The workflow will:

  1. Extract version 2.1.0 for changelog lookup
  2. Use full tag v2.1.0 for GitHub release creation
  3. Create the release with proper changelog content

This is especially useful for hotfixes or when you need to create a release from a specific commit without creating a tag first.

Fixes #10.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: HeyItsGilbert <615265+HeyItsGilbert@users.noreply.github.com>
@HeyItsGilbert HeyItsGilbert marked this pull request as ready for review August 19, 2025 00:25
@HeyItsGilbert HeyItsGilbert merged commit e9a85bc into main Aug 19, 2025
3 checks passed
@HeyItsGilbert HeyItsGilbert deleted the copilot/fix-10 branch August 19, 2025 00:26
Copilot AI restored the copilot/fix-10 branch August 19, 2025 00:26
Copilot AI changed the title [WIP] .github/workflows/release.yaml inputs Add workflow_dispatch input support for manual tag releases Aug 19, 2025
Copilot AI requested a review from HeyItsGilbert August 19, 2025 00:26
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.

.github/workflows/release.yaml inputs

2 participants