Skip to content

Commit 017aa40

Browse files
caidanwclaude
andcommitted
ci: restrict build workflow to PRs targeting main
Only run build workflow when pull requests target the main branch, preventing unnecessary builds on feature branch pushes. Co-Authored-By: Claude <[email protected]>
1 parent 020f346 commit 017aa40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Build
22

33
on:
4-
push:
4+
pull_request:
5+
branches:
6+
- main
57

68
jobs:
79
test:

0 commit comments

Comments
 (0)