From bcb82b14733b960d84d1131886da7f54d10ca7b5 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Sat, 7 Feb 2026 09:45:31 +0800 Subject: [PATCH] =?UTF-8?q?chore(workflow):=20=E6=9B=B4=E6=96=B0=E8=AE=B8?= =?UTF-8?q?=E5=8F=AF=E8=AF=81=E5=90=88=E8=A7=84=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 - 移除条件检查逻辑以简化工作流触发 - 修改许可证徽章更新条件为标签版本发布 - 精简工作流步骤配置 --- .github/workflows/license-compliance.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/license-compliance.yml b/.github/workflows/license-compliance.yml index 4db97a6..0af4f6b 100644 --- a/.github/workflows/license-compliance.yml +++ b/.github/workflows/license-compliance.yml @@ -11,10 +11,6 @@ permissions: jobs: compliance: runs-on: ubuntu-latest - if: > - github.event.workflow_run.conclusion == 'success' && - github.event.workflow_run.head_branch == 'main'&& - contains(github.event.workflow_run.head_commit.message, '[release ci]') steps: - name: Checkout repository uses: actions/checkout@v6 @@ -31,7 +27,7 @@ jobs: project-license: 'Apache-2.0' fail-on-restrictive: false fail-on-incompatible: false - update-badge: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + update-badge: startsWith(github.ref, 'refs/tags/v') - name: Feluda License Scanner Incompatible Licenses run: | feluda --incompatible