Skip to content

Commit bad0d99

Browse files
manuzhangkevinjqliu
authored andcommitted
Build: Don't run CI on unrelated changes
1 parent a2942fb commit bad0d99

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.github/workflows/check-md-link.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ name: Check Markdown links
2222
on:
2323
push:
2424
paths:
25-
- mkdocs/**
25+
- '.github/workflows/check-md-link.yml'
26+
- 'mkdocs/**'
2627
branches:
2728
- 'main'
2829
pull_request:
30+
paths:
31+
- '.github/workflows/check-md-link.yml'
32+
- 'mkdocs/**'
2933

3034
jobs:
3135
markdown-link-check:

.github/workflows/python-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ on:
2424
branches:
2525
- 'main'
2626
pull_request:
27+
paths:
28+
- '**' # Include all files and directories in the repository by default.
29+
- '!.github/workflows/**' # Exclude all workflow files
30+
- '.github/workflows/python-ci.yml' # except the current file.
31+
- '!.github/ISSUE_TEMPLATE/**' # Exclude files and directories that don't impact tests or code like templates, metadata, and documentation.
32+
- '!.gitignore'
33+
- '!.asf.yml'
34+
- '!mkdocs/**'
35+
- '!.gitattributes'
36+
- '!README.md'
37+
- '!CONTRIBUTING.md'
38+
- '!LICENSE'
39+
- '!NOTICE'
2740

2841
concurrency:
2942
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/python-integration.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ on:
2424
branches:
2525
- 'main'
2626
pull_request:
27+
paths:
28+
- '**' # Include all files and directories in the repository by default.
29+
- '!.github/workflows/**' # Exclude all workflow files
30+
- '.github/workflows/python-integration.yml' # except the current file.
31+
- '!.github/ISSUE_TEMPLATE/**' # Exclude files and directories that don't impact tests or code like templates, metadata, and documentation.
32+
- '!.gitignore'
33+
- '!.asf.yml'
34+
- '!mkdocs/**'
35+
- '!.gitattributes'
36+
- '!README.md'
37+
- '!CONTRIBUTING.md'
38+
- '!LICENSE'
39+
- '!NOTICE'
2740

2841
concurrency:
2942
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)