From 4022600cb1440db7597f8b701a29379e3583b179 Mon Sep 17 00:00:00 2001 From: GwWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Fri, 2 Jan 2026 13:49:46 +0800 Subject: [PATCH] =?UTF-8?q?chore(workflow):=20=E6=9B=B4=E6=96=B0=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=A0=87=E7=AD=BE=E8=B7=B3=E8=BF=87=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E8=AF=8D=E6=A3=80=E6=B5=8B=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改跳过关键词检测条件,支持 [skip release] 标记 - 保持对 [no tag] 和 [skip] 标记的兼容性 - 优化条件判断表达式结构 --- .github/workflows/auto-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index 7008e82..6034edd 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -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