chore(workflow): 调整许可证检查工作流配置

移除硬编码的update-badge选项,改用条件表达式控制仅在main分支push时更新徽章,
确保许可证检查徽章只在主分支推送时自动更新
This commit is contained in:
GeWuYou 2026-02-02 17:08:13 +08:00
parent 09e194a2bf
commit 01a88cc223

View File

@ -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配置且跳过恢复步骤