Skip to content

Commit 7e2f101

Browse files
committed
Refactor GitHub Actions workflow to limit triggers to the main branch
1 parent 45f1c8c commit 7e2f101

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.github/workflows/pr.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,9 @@ name: CI
22

33
on:
44
push:
5-
paths:
6-
- "src/**"
7-
- "*.py"
8-
- "*.toml"
9-
- "requirements.txt"
10-
- ".github/workflows/**"
5+
branches: [ "main" ]
116
pull_request:
12-
paths:
13-
- "src/**"
14-
- "*.py"
15-
- "*.toml"
16-
- "requirements.txt"
17-
- ".github/workflows/**"
18-
7+
branches: [ "main" ]
198
jobs:
209
ruff:
2110
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)