You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by ke...@apache.org on 2024/12/05 18:11:29 UTC
(iceberg-python) 01/02: Build: Don't run CI on unrelated changes
This is an automated email from the ASF dual-hosted git repository.
kevinjqliu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git
commit bad0d996e0562ce9a9f704b1c3c53ef5fdff9034
Author: manuzhang <ow...@gmail.com>
AuthorDate: Wed Dec 4 21:11:05 2024 +0800
Build: Don't run CI on unrelated changes
---
.github/workflows/check-md-link.yml | 6 +++++-
.github/workflows/python-ci.yml | 13 +++++++++++++
.github/workflows/python-integration.yml | 13 +++++++++++++
3 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/check-md-link.yml b/.github/workflows/check-md-link.yml
index da22125c..60c6812c 100644
--- a/.github/workflows/check-md-link.yml
+++ b/.github/workflows/check-md-link.yml
@@ -22,10 +22,14 @@ name: Check Markdown links
on:
push:
paths:
- - mkdocs/**
+ - '.github/workflows/check-md-link.yml'
+ - 'mkdocs/**'
branches:
- 'main'
pull_request:
+ paths:
+ - '.github/workflows/check-md-link.yml'
+ - 'mkdocs/**'
jobs:
markdown-link-check:
diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml
index 893d3d1c..aa69b3a0 100644
--- a/.github/workflows/python-ci.yml
+++ b/.github/workflows/python-ci.yml
@@ -24,6 +24,19 @@ on:
branches:
- 'main'
pull_request:
+ paths:
+ - '**' # Include all files and directories in the repository by default.
+ - '!.github/workflows/**' # Exclude all workflow files
+ - '.github/workflows/python-ci.yml' # except the current file.
+ - '!.github/ISSUE_TEMPLATE/**' # Exclude files and directories that don't impact tests or code like templates, metadata, and documentation.
+ - '!.gitignore'
+ - '!.asf.yml'
+ - '!mkdocs/**'
+ - '!.gitattributes'
+ - '!README.md'
+ - '!CONTRIBUTING.md'
+ - '!LICENSE'
+ - '!NOTICE'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
diff --git a/.github/workflows/python-integration.yml b/.github/workflows/python-integration.yml
index 62a65f79..4c68ec7a 100644
--- a/.github/workflows/python-integration.yml
+++ b/.github/workflows/python-integration.yml
@@ -24,6 +24,19 @@ on:
branches:
- 'main'
pull_request:
+ paths:
+ - '**' # Include all files and directories in the repository by default.
+ - '!.github/workflows/**' # Exclude all workflow files
+ - '.github/workflows/python-integration.yml' # except the current file.
+ - '!.github/ISSUE_TEMPLATE/**' # Exclude files and directories that don't impact tests or code like templates, metadata, and documentation.
+ - '!.gitignore'
+ - '!.asf.yml'
+ - '!mkdocs/**'
+ - '!.gitattributes'
+ - '!README.md'
+ - '!CONTRIBUTING.md'
+ - '!LICENSE'
+ - '!NOTICE'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}