From b6cd4325b8b353859e6de8b34321d6a81471c409 Mon Sep 17 00:00:00 2001 From: Ginta <775650117@qq.com> Date: Wed, 22 Apr 2026 22:46:14 +0800 Subject: [PATCH] release action --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2bdd67a..5d8ad8e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,12 @@ on: push: tags: - "v*" + workflow_dispatch: + inputs: + release_tag: + description: "要发布的 tag(例如 v1.2.3,必须已存在)" + required: true + type: string permissions: contents: write @@ -25,6 +31,7 @@ jobs: uses: actions/checkout@v6 with: fetch-depth: 0 + ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.release_tag || github.ref }} - name: Ensure Tag Commit Is On Default Branch env: