ci: support manual gitea image release dispatch

This commit is contained in:
kone
2026-06-04 00:36:44 +08:00
parent dbf3278ba3
commit b1d837d800
+1 -1
View File
@@ -29,7 +29,7 @@ jobs:
rm -rf .git
git init
git remote add origin "http://kgod:${RELEASE_TOKEN}@git.jianshixingqiu.com/kgod/sub2api.git"
if [ -n "${{ inputs.tag }}" ]; then
if [ -n "${{ inputs.tag }}" ] && [ "${GITHUB_EVENT_NAME:-}" != "workflow_dispatch" ]; then
git fetch --depth 1 origin "refs/tags/${{ inputs.tag }}"
else
git fetch --depth 1 origin "$GITHUB_REF"