Skip to content

Commit 034340f

Browse files
authored
ci: Don't run CI on unrelated changes (#1686)
1 parent 460de45 commit 034340f

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

.github/workflows/bindings_python_ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ on:
2222
branches:
2323
- main
2424
pull_request:
25-
branches:
26-
- main
25+
paths:
26+
- ".github/workflows/bindings_python_ci.yml"
27+
- "bindings/python/**"
28+
- "crates/iceberg/**"
29+
- "crates/integrations/datafusion/**"
2730

2831
concurrency:
2932
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}

.github/workflows/ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,21 @@ on:
2323
- main
2424
pull_request:
2525
branches:
26-
- main
26+
- '**' # Include all files and directories in the repository by default.
27+
- '!.github/workflows/**' # Exclude all workflow files
28+
- '.github/workflows/ci.yml' # except the current file.
29+
- '!.github/actions/**' # Exclude custom actions
30+
- '!.github/ISSUE_TEMPLATE/**' # Exclude files and directories that don't impact tests or code like templates, metadata, and documentation.
31+
- '!scripts/**'
32+
- '!website/**'
33+
- '!.asf.yml'
34+
- '!.gitattributes'
35+
- '!.gitignore'
36+
- '!CONTRIBUTING.md'
37+
- '!CHANGELOG.md'
38+
- '!LICENSE'
39+
- '!NOTICE'
40+
- '!README.md'
2741

2842
concurrency:
2943
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}

.github/workflows/website.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ on:
2222
branches:
2323
- main
2424
pull_request:
25-
branches:
26-
- main
25+
paths:
26+
- ".github/workflows/website.yml"
27+
- "website/**"
2728

2829
concurrency:
2930
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}

0 commit comments

Comments
 (0)