Skip to content

Commit ec1d68d

Browse files
committed
chore: Add path filters to GitHub workflows for optimized trigger behavior
- Updated `docker-publish.yml` and `test.yml` to include specific path-level filters for `push` and `pull_request` events. - Enabled targeted workflow execution for relevant file changes only. Signed-off-by: Phillip Sitbon <[email protected]>
1 parent ff76d93 commit ec1d68d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/docker-publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,22 @@ on:
44
push:
55
branches: [ main, beta ]
66
tags: [ 'v*.*.*' ]
7+
paths:
8+
- 'magg/**'
9+
- 'pyproject.toml'
10+
- 'uv.lock'
11+
- 'magg.dockerfile'
12+
- 'compose.yaml'
13+
- '.github/workflows/docker-publish.yml'
714
pull_request:
815
branches: [ main, beta ]
16+
paths:
17+
- 'magg/**'
18+
- 'pyproject.toml'
19+
- 'uv.lock'
20+
- 'magg.dockerfile'
21+
- 'compose.yaml'
22+
- '.github/workflows/docker-publish.yml'
923
workflow_dispatch:
1024

1125
env:

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,20 @@ name: Tests
33
on:
44
push:
55
branches: ['*']
6+
paths:
7+
- 'magg/**'
8+
- 'tests/**'
9+
- 'pyproject.toml'
10+
- 'uv.lock'
11+
- '.github/workflows/test.yml'
612
pull_request:
713
branches: ['*']
14+
paths:
15+
- 'magg/**'
16+
- 'tests/**'
17+
- 'pyproject.toml'
18+
- 'uv.lock'
19+
- '.github/workflows/test.yml'
820

921
jobs:
1022
test:

0 commit comments

Comments
 (0)