From 330a06c018dcee8adaac539d5b17a4bc65dce397 Mon Sep 17 00:00:00 2001 From: GwWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Fri, 2 Jan 2026 13:55:36 +0800 Subject: [PATCH] =?UTF-8?q?chore(workflow):=20=E8=B0=83=E6=95=B4=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=A0=87=E7=AD=BE=E5=B7=A5=E4=BD=9C=E6=B5=81=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 交换了 "[skip]" 和 "[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 c4a1efa..4f8e4cd 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]"* ]] || [[ "$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