Skip to content

Commit 2158c80

Browse files
committed
Only run workflow when relevant files are modified
Running the libraries/report-size-deltas workflow is only necessary when files under libraries/report-size-deltas/ or the workflow configuration itself are modified. For any other changes, the workflow run only slows down the CI results.
1 parent 9db71d7 commit 2158c80

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/libraries_report-size-deltas.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: libraries/report-size-deltas workflow
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/libraries_report-size-deltas.yml'
7+
- 'libraries/report-size-deltas/**'
8+
9+
push:
10+
paths:
11+
- '.github/workflows/libraries_report-size-deltas.yml'
12+
- 'libraries/report-size-deltas/**'
413

514
jobs:
615
test:

0 commit comments

Comments
 (0)