Skip to content

Commit c4d202d

Browse files
authored
Apply path excludes to pull_request target (#4084)
`push` is for push only. We can use anchors instead of duplicating the value, since github supports them now
1 parent baf3482 commit c4d202d

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/cpp-bindings.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: C++ bindings
22

33
on:
44
push:
5-
paths:
5+
paths: &paths
66
- ".github/workflows/cpp-bindings.yml"
77
- "include/"
88
- "src/"
@@ -12,6 +12,7 @@ on:
1212
- main
1313
- ruby-4.0
1414
pull_request:
15+
paths: *paths
1516

1617
jobs:
1718
test:

.github/workflows/java-wasm-bindings.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Java WASM bindings
22

33
on:
44
push:
5-
paths:
5+
paths: &paths
66
- ".github/workflows/java-wasm-bindings.yml"
77
- "include/"
88
- "src/"
@@ -13,6 +13,7 @@ on:
1313
- main
1414
- ruby-4.0
1515
pull_request:
16+
paths: *paths
1617

1718
jobs:
1819
build-wasm:

.github/workflows/javascript-bindings.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: JavaScript bindings
22

33
on:
44
push:
5-
paths:
5+
paths: &paths
66
- ".github/workflows/javascript-bindings.yml"
77
- "include/"
88
- "src/"
@@ -11,6 +11,7 @@ on:
1111
- main
1212
- ruby-4.0
1313
pull_request:
14+
paths: *paths
1415

1516
jobs:
1617
build:

.github/workflows/rust-bindings.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Rust bindings
22

33
on:
44
push:
5-
paths:
5+
paths: &paths
66
- ".github/workflows/rust-bindings.yml"
77
- "include/"
88
- "src/"
@@ -12,6 +12,7 @@ on:
1212
- main
1313
- ruby-4.0
1414
pull_request:
15+
paths: *paths
1516

1617
env:
1718
RUSTFLAGS: "-D warnings"

0 commit comments

Comments
 (0)