chore(ci): 更新工作流以支持条件徽章更新

- 修改了许可证扫描器的徽章更新逻辑
- 添加了 [release ci] 提交消息条件检查
- 确保仅在特定提交标记时更新徽章状态
This commit is contained in:
GeWuYou 2026-02-02 21:01:22 +08:00
parent 7d6ec71989
commit c1f906af61

View File

@ -93,7 +93,7 @@ jobs:
fail-on-restrictive: false
fail-on-incompatible: false
verbose: true
update-badge: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
update-badge: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && contains(github.event.workflow_run.head_commit.message, '[release ci] }}
- name: Feluda License Scanner Incompatible Licenses
run: |
feluda --incompatible