Skip to content

Commit 84a2892

Browse files
committed
ci: avoid duplicate builds in PRs
Only trigger builds on PRs and not also on every push to avoid building twice. Fixes: MODELIX-471
1 parent a86d3a2 commit 84a2892

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ name: Build
33
on:
44
push:
55
branches:
6-
- '**'
6+
- 'main'
77
pull_request: {}
8+
# allow manual execution just in case
9+
workflow_dispatch:
810

911
jobs:
1012
build:

0 commit comments

Comments
 (0)