chore(workflow): 更新自动标签跳过关键词检测逻辑

- 修改跳过关键词检测条件,支持 [skip release] 标记
- 保持对 [no tag] 和 [skip] 标记的兼容性
- 优化条件判断表达式结构
This commit is contained in:
GwWuYou 2026-01-02 13:49:46 +08:00
parent 0a70cbfb86
commit 4022600cb1

View File

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