Skip to content

Commit 7a2fc0a

Browse files
committed
fix: remove default tag value from workflow_dispatch to prevent overwriting release images
workflow_dispatch now leaves the tag input empty by default. When empty, the resolve step falls back to github.ref_name (branch name) instead of using a hardcoded version, preventing manual test runs from overwriting production release tags.
1 parent 01544da commit 7a2fc0a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/release-images.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ on:
2525
tag:
2626
description: "SemVer tag to build, for example v0.3.0"
2727
type: string
28-
required: true
29-
default: "v0.3.0"
28+
required: false
3029

3130
# 发布任务需要创建 Release 并上传应用包;镜像任务写入 GHCR。
3231
permissions:

0 commit comments

Comments
 (0)