Skip to content

Commit 4d1c11b

Browse files
authored
ci: fix workflows running twice (#3)
Why - when people with write access write a branch to this repo, then use it in a PR, it causes the PR to run the workflow "test" twice What - fix this bug. "test" will now only run one time
1 parent c58af9d commit 4d1c11b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: test
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
48

59
jobs:
610
test:

0 commit comments

Comments
 (0)