ci: support manual gitea image release dispatch
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user