diff --git a/.github/workflows/check-md-link.yml b/.github/workflows/check-md-link.yml index da22125c3a..60c6812c06 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 893d3d1c9a..aa69b3a0d4 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 62a65f79bf..4c68ec7a5a 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 }}