chore(workflow): 调整自动标签工作流中的条件判断顺序

- 交换了 "[skip]" 和 "[no tag]" 关键词的检查顺序
- 保持了原有的跳过标签创建的功能逻辑
- 优化了条件判断的可读性
- [skip]
This commit is contained in:
GwWuYou 2026-01-02 13:55:36 +08:00
parent 3a2ec6f7fc
commit 330a06c018

View File

@ -37,7 +37,7 @@ jobs:
run: |
# 检查最近一次提交信息是否包含跳过关键词
LAST_COMMIT_MSG=$(git log -1 --pretty=format:"%B")
if [[ "$LAST_COMMIT_MSG" == *"[no tag]"* ]] || [[ "$LAST_COMMIT_MSG" == *"[skip]"* ]]; then
if [[ "$LAST_COMMIT_MSG" == *"[skip]"* ]] || [[ "$LAST_COMMIT_MSG" == *"[no tag]"* ]]; then
echo "skip_tag=true" >> $GITHUB_OUTPUT
echo "Skipping tag creation due to skip keyword in commit message"
else