Skip to content

Commit 3bc02dc

Browse files
committed
chore: only run actions on specific paths
1 parent 4b9d585 commit 3bc02dc

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,18 @@ name: CI
33
on:
44
push:
55
branches: [ main ]
6+
paths:
7+
- 'src/**'
8+
- 'Cargo.toml'
9+
- 'Cargo.lock'
10+
- '.github/workflows/ci.yml'
611
pull_request:
712
branches: [ main ]
13+
paths:
14+
- 'src/**'
15+
- 'Cargo.toml'
16+
- 'Cargo.lock'
17+
- '.github/workflows/ci.yml'
818

919
env:
1020
CARGO_TERM_COLOR: always

.github/workflows/docker.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Docker Build and Push
33
on:
44
push:
55
branches: [ main ]
6+
paths:
7+
- 'src/**'
8+
- 'Cargo.toml'
9+
- 'Cargo.lock'
10+
- 'Dockerfile'
11+
- '.github/workflows/docker.yml'
612
tags:
713
- 'v*'
814

0 commit comments

Comments
 (0)