This is an automated email from the ASF dual-hosted git repository.

hubcio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git


The following commit(s) were added to refs/heads/master by this push:
     new a263a813d fix(ci): skip unaffected license checks (#4428)
a263a813d is described below

commit a263a813d2fe0442a02c1f9efcbd79c4c46ee9d4
Author: Hubert Gruszecki <[email protected]>
AuthorDate: Wed Oct 7 10:40:35 2026 +0200

    fix(ci): skip unaffected license checks (#4428)
---
 .github/workflows/_common.yml   |  6 ++++++
 .github/workflows/_detect.yml   | 27 +++++++++++++++++++++++++++
 .github/workflows/pre-merge.yml |  3 +++
 3 files changed, 36 insertions(+)

diff --git a/.github/workflows/_common.yml b/.github/workflows/_common.yml
index 357dff62c..5b9644a9b 100644
--- a/.github/workflows/_common.yml
+++ b/.github/workflows/_common.yml
@@ -18,6 +18,11 @@
 name: _common
 on:
   workflow_call:
+    inputs:
+      validate-third-party-licenses:
+        description: "Whether to validate bundled third-party licenses"
+        type: boolean
+        default: true
 
 permissions:
   contents: read
@@ -121,6 +126,7 @@ jobs:
 
   third-party-licenses:
     name: Validate third-party licenses
+    if: inputs.validate-third-party-licenses
     runs-on: ubuntu-latest
     steps:
       - uses: actions/[email protected]
diff --git a/.github/workflows/_detect.yml b/.github/workflows/_detect.yml
index c60e27ee5..11cb2e992 100644
--- a/.github/workflows/_detect.yml
+++ b/.github/workflows/_detect.yml
@@ -20,6 +20,9 @@ name: _detect
 on:
   workflow_call:
     outputs:
+      third_party_licenses:
+        description: "Whether third-party license inputs changed"
+        value: ${{ jobs.detect.outputs.third_party_licenses }}
       rust_matrix:
         description: "Matrix for Rust components"
         value: ${{ jobs.detect.outputs.rust_matrix }}
@@ -64,6 +67,7 @@ jobs:
   detect:
     runs-on: ubuntu-latest
     outputs:
+      third_party_licenses: ${{ github.event_name != 'pull_request' || 
steps.changed.outputs.third_party_licenses == 'true' }}
       rust_matrix: ${{ steps.mk.outputs.rust_matrix }}
       python_matrix: ${{ steps.mk.outputs.python_matrix }}
       php_matrix: ${{ steps.mk.outputs.php_matrix }}
@@ -88,6 +92,29 @@ jobs:
           filters: |
             all:
               - '**'
+            third_party_licenses:
+              - '**/Cargo.toml'
+              - '**/Cargo.lock'
+              - '**/.cargo/**'
+              - 'rust-toolchain*'
+              - '.npmrc'
+              - 'web/package.json'
+              - 'web/package-lock.json'
+              - 'web/npm-shrinkwrap.json'
+              - 'web/.npmrc'
+              - '**/LICENSE*'
+              - '**/NOTICE*'
+              - 'about.toml'
+              - 'about.hbs'
+              - 'scripts/ci/third-party-licenses.sh'
+              - 'scripts/ci/render-node-licenses.mjs'
+              - 'scripts/ci/apt-install.sh'
+              - '.github/actions/utils/validate-third-party-licenses/**'
+              - '.github/actions/utils/setup-rust-with-cache/**'
+              - '.github/actions/utils/free-disk-space/**'
+              - '.github/workflows/_detect.yml'
+              - '.github/workflows/_common.yml'
+              - '.github/workflows/pre-merge.yml'
           list-files: json
 
       - name: Load components config
diff --git a/.github/workflows/pre-merge.yml b/.github/workflows/pre-merge.yml
index cf35325a0..93aac16e9 100644
--- a/.github/workflows/pre-merge.yml
+++ b/.github/workflows/pre-merge.yml
@@ -40,7 +40,10 @@ jobs:
   # Common checks - always run
   common:
     name: Common checks
+    needs: detect
     uses: ./.github/workflows/_common.yml
+    with:
+      validate-third-party-licenses: ${{ 
needs.detect.outputs.third_party_licenses == 'true' }}
     permissions:
       contents: read
       pull-requests: read

Reply via email to