From 01a88cc2231ab977a6fdd476b329ff7260e5fb09 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Mon, 2 Feb 2026 17:08:13 +0800 Subject: [PATCH] =?UTF-8?q?chore(workflow):=20=E8=B0=83=E6=95=B4=E8=AE=B8?= =?UTF-8?q?=E5=8F=AF=E8=AF=81=E6=A3=80=E6=9F=A5=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除硬编码的update-badge选项,改用条件表达式控制仅在main分支push时更新徽章, 确保许可证检查徽章只在主分支推送时自动更新 --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 93e4fa6..e1a37cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,7 +92,6 @@ jobs: project-license: 'Apache-2.0' fail-on-restrictive: true fail-on-incompatible: true - update-badge: true update-badge: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} # 构建项目,使用Release配置且跳过恢复步骤