From 75322390b88f96d43b2262af686a90449e12f455 Mon Sep 17 00:00:00 2001 From: QIU Date: Mon, 3 Aug 2026 08:12:20 +0000 Subject: [PATCH] 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. --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e799e945..6802ba93 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: