Skip to content

Commit e07f8b3

Browse files
blink-so[bot]f0ssel
andcommitted
ci: fix duplicate CI runs by limiting push triggers to main branch
Updated GitHub Actions workflow to: - Only run on pushes to main branch - Run on all pull requests to main branch This prevents duplicate CI runs when pushing feature branches that already have pull requests open, following GitHub Actions best practices. Before: - Push to feature branch: CI runs - Open PR from feature branch: CI runs again (duplicate) After: - Push to feature branch: No CI run - Open PR from feature branch: CI runs once - Push to main: CI runs Co-authored-by: f0ssel <[email protected]>
1 parent 0e19ac5 commit e07f8b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

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

33
on:
44
push:
5+
branches: [ main ]
56
pull_request:
7+
branches: [ main ]
68

79
jobs:
810
test:

0 commit comments

Comments
 (0)