Skip to content

Commit 25cee2d

Browse files
EZonidpgrote
authored andcommitted
CI: skip build/test jobs if only Docs/ is modified (BLAST-WarpX#5387)
Could we do this to make sure that we run the GitHub Actions and Azure jobs (build, test) only if _at least one file outside the_ `Docs` _directory_ is modified, i.e., skip those jobs if only files in the `Docs` directory are modified? I think it would be safe to do so (and a bit of a waste of resources to not do so...), but I leave it open for discussion. If merged, we could test this rebasing BLAST-WarpX#5386 and seeing if the correct CI jobs are skipped. Note that this PR leaves the other CI jobs untouched, e.g., `source`, `docs`, `CodeQL`, etc.
1 parent 4abebc3 commit 25cee2d

File tree

10 files changed

+21
-0
lines changed

10 files changed

+21
-0
lines changed

.azure-pipelines.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ pr:
99
branches:
1010
include:
1111
- development
12+
paths:
13+
exclude:
14+
- Docs
1215

1316
jobs:
1417
- job:

.github/workflows/clang_sanitizers.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- "development"
77
pull_request:
8+
paths-ignore:
9+
- "Docs/**"
810

911
concurrency:
1012
group: ${{ github.ref }}-${{ github.head_ref }}-clangsanitizers

.github/workflows/clang_tidy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- "development"
77
pull_request:
8+
paths-ignore:
9+
- "Docs/**"
810

911
concurrency:
1012
group: ${{ github.ref }}-${{ github.head_ref }}-clangtidy

.github/workflows/cuda.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- "development"
77
pull_request:
8+
paths-ignore:
9+
- "Docs/**"
810

911
concurrency:
1012
group: ${{ github.ref }}-${{ github.head_ref }}-cuda

.github/workflows/hip.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- "development"
77
pull_request:
8+
paths-ignore:
9+
- "Docs/**"
810

911
concurrency:
1012
group: ${{ github.ref }}-${{ github.head_ref }}-hip

.github/workflows/insitu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- "development"
77
pull_request:
8+
paths-ignore:
9+
- "Docs/**"
810

911
concurrency:
1012
group: ${{ github.ref }}-${{ github.head_ref }}-insituvis

.github/workflows/intel.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- "development"
77
pull_request:
8+
paths-ignore:
9+
- "Docs/**"
810

911
concurrency:
1012
group: ${{ github.ref }}-${{ github.head_ref }}-intel

.github/workflows/macos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- "development"
77
pull_request:
8+
paths-ignore:
9+
- "Docs/**"
810

911
concurrency:
1012
group: ${{ github.ref }}-${{ github.head_ref }}-macos

.github/workflows/ubuntu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- "development"
77
pull_request:
8+
paths-ignore:
9+
- "Docs/**"
810

911
concurrency:
1012
group: ${{ github.ref }}-${{ github.head_ref }}-ubuntu

.github/workflows/windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- "development"
77
pull_request:
8+
paths-ignore:
9+
- "Docs/**"
810

911
concurrency:
1012
group: ${{ github.ref }}-${{ github.head_ref }}-windows

0 commit comments

Comments
 (0)