Skip to content

Commit 626a80f

Browse files
manuzhangcodex
andcommitted
ci: scope pull request checks to relevant paths
Filter pull request checks without duplicating path lists on push triggers. Run Actions validators for GitHub YAML changes, and skip build, test, and lint workflows for documentation and development-only paths. Keep license and pre-commit checks unfiltered. Co-authored-by: Codex <codex@openai.com>
1 parent 9221381 commit 626a80f

8 files changed

Lines changed: 38 additions & 4 deletions

File tree

‎.github/workflows/asf-allowlist-check.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ on:
2929
- main
3030
pull_request:
3131
types: [opened, synchronize, reopened, ready_for_review]
32+
paths:
33+
- '.github/**/*.yml'
34+
- '.github/**/*.yaml'
3235

3336
permissions:
3437
contents: read

‎.github/workflows/aws_test.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ on:
2525
- '**'
2626
pull_request:
2727
types: [opened, synchronize, reopened, ready_for_review]
28+
paths-ignore:
29+
- '.devcontainer/**'
30+
- '*.md'
31+
- '**/*.md'
32+
- 'dev/**'
33+
- 'mkdocs/**'
2834

2935
concurrency:
3036
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}

‎.github/workflows/codeql.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
types: [opened, synchronize, reopened, ready_for_review]
2828
branches:
2929
- main
30+
paths:
31+
- '.github/**/*.yml'
32+
- '.github/**/*.yaml'
3033
schedule:
3134
- cron: '16 4 * * 1'
3235

‎.github/workflows/cpp-linter.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,19 @@ on:
2121
push:
2222
branches:
2323
- main
24-
paths-ignore:
25-
- '.github/**'
26-
- 'ci/**'
27-
- 'cmake_modules/**'
2824
pull_request:
2925
types: [opened, synchronize, reopened, ready_for_review]
3026
branches:
3127
- main
3228
paths-ignore:
29+
- '.devcontainer/**'
3330
- '.github/**'
31+
- '*.md'
32+
- '**/*.md'
3433
- 'ci/**'
3534
- 'cmake_modules/**'
35+
- 'dev/**'
36+
- 'mkdocs/**'
3637

3738
concurrency:
3839
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}

‎.github/workflows/sanitizer_test.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ on:
2525
- '**'
2626
pull_request:
2727
types: [opened, synchronize, reopened, ready_for_review]
28+
paths-ignore:
29+
- '.devcontainer/**'
30+
- '*.md'
31+
- '**/*.md'
32+
- 'dev/**'
33+
- 'mkdocs/**'
2834

2935
concurrency:
3036
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}

‎.github/workflows/sql_catalog_test.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ on:
2525
- '**'
2626
pull_request:
2727
types: [opened, synchronize, reopened, ready_for_review]
28+
paths-ignore:
29+
- '.devcontainer/**'
30+
- '*.md'
31+
- '**/*.md'
32+
- 'dev/**'
33+
- 'mkdocs/**'
2834

2935
concurrency:
3036
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}

‎.github/workflows/test.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ on:
2525
- '**'
2626
pull_request:
2727
types: [opened, synchronize, reopened, ready_for_review]
28+
paths-ignore:
29+
- '.devcontainer/**'
30+
- '*.md'
31+
- '**/*.md'
32+
- 'dev/**'
33+
- 'mkdocs/**'
2834

2935
concurrency:
3036
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}

‎.github/workflows/zizmor.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ on:
2525
- main
2626
pull_request:
2727
types: [opened, synchronize, reopened, ready_for_review]
28+
paths:
29+
- '.github/**/*.yml'
30+
- '.github/**/*.yaml'
2831

2932
concurrency:
3033
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}

0 commit comments

Comments
 (0)