Skip to content

Commit e793afd

Browse files
author
Jimisola Laursen
committed
ci: restrict push trigger to main branch
Avoid duplicate CI runs on PRs by limiting the push trigger to the main branch only. PRs are already covered by the pull_request trigger. Signed-off-by: jimisola <jimisola@jimisola.com>
1 parent f1313cd commit e793afd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ on:
22
workflow_call:
33
workflow_dispatch:
44
push:
5+
branches:
6+
- main
57
pull_request:
68
types:
79
- opened

0 commit comments

Comments
 (0)