Skip to content

Commit a9dbf5c

Browse files
authored
Only run Compile Examples workflow when relevant files are modified (#123)
Running the Compile Examples GitHub Actions workflow is only necessary when files under examples/ or src/, or the workflow configuration itself are modified. For any other changes, the workflow run only slows down the CI results and causes unnecessary comments from the report-size-deltas workflow.
1 parent d43c663 commit a9dbf5c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/compile-examples.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
name: Compile Examples
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/compile-examples.yml"
7+
- "examples/**"
8+
- "src/**"
9+
push:
10+
paths:
11+
- ".github/workflows/compile-examples.yml"
12+
- "examples/**"
13+
- "src/**"
414

515
jobs:
616
build:

0 commit comments

Comments
 (0)