From 29a01bc593a8b5766a047f37adbacde05d98177e Mon Sep 17 00:00:00 2001 From: manuzhang Date: Wed, 17 Sep 2025 23:21:14 +0800 Subject: [PATCH] ci: Don't run CI on unrelated changes --- .github/workflows/bindings_python_ci.yml | 7 +++++-- .github/workflows/ci.yml | 16 +++++++++++++++- .github/workflows/website.yml | 5 +++-- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bindings_python_ci.yml b/.github/workflows/bindings_python_ci.yml index 437081bfa..7386878d0 100644 --- a/.github/workflows/bindings_python_ci.yml +++ b/.github/workflows/bindings_python_ci.yml @@ -22,8 +22,11 @@ on: branches: - main pull_request: - branches: - - main + paths: + - ".github/workflows/bindings_python_ci.yml" + - "bindings/python/**" + - "crates/iceberg/**" + - "crates/integrations/datafusion/**" concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88bb2a9c4..07040eaab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,21 @@ on: - main pull_request: branches: - - main + - '**' # Include all files and directories in the repository by default. + - '!.github/workflows/**' # Exclude all workflow files + - '.github/workflows/ci.yml' # except the current file. + - '!.github/actions/**' # Exclude custom actions + - '!.github/ISSUE_TEMPLATE/**' # Exclude files and directories that don't impact tests or code like templates, metadata, and documentation. + - '!scripts/**' + - '!website/**' + - '!.asf.yml' + - '!.gitattributes' + - '!.gitignore' + - '!CONTRIBUTING.md' + - '!CHANGELOG.md' + - '!LICENSE' + - '!NOTICE' + - '!README.md' concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 89e3ca64a..c5925da6a 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -22,8 +22,9 @@ on: branches: - main pull_request: - branches: - - main + paths: + - ".github/workflows/website.yml" + - "website/**" concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}