ci: allow specifying release tag on manual dispatch

workflow_dispatch defaults TAG_NAME to the branch name (main), which breaks gh release create. Accept an optional tag_name input and fall back to github.ref_name for tag-triggered runs.
This commit is contained in:
mckero committed 2026-08-03 08:12:20 +00:00
1 parent d1312f1f09
commit 75322390b8
1 file changed
+6 -1
+6 -1
View File
@@ -5,9 +5,14 @@ on:
tags:
- v**
workflow_dispatch:
inputs:
tag_name:
description: 'Release tag name (e.g. v4.4.3)'
required: false
default: ''
env:
TAG_NAME: ${{ github.ref_name }}
TAG_NAME: ${{ github.event.inputs.tag_name || github.ref_name }}
jobs:
release: