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