Skip to content

Commit e489344

Browse files
committed
Update workflow events
1 parent 38bd2c9 commit e489344

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
name: Build
22
on:
3-
- push
4-
- pull_request
3+
# Only run workflow when there is push to main or when there is a pull request to main
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
510
jobs:
611
test:
712
# When running with act (https://github.com/nektos/act), these lines need to be appended with the ACT variable

0 commit comments

Comments
 (0)