Skip to content

Commit 49e87da

Browse files
committed
workflow: Only run once on PR or merge to main
Restrict when the workflow is run so that it will either run when pushed to main, or when a pull request to main, and not for arbitrary other branches. Signed-off-by: David Brown <[email protected]>
1 parent 3091d55 commit 49e87da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ name: Build
77

88
on:
99
push:
10+
branches:
11+
- main
1012
pull_request:
13+
branches:
14+
- main
1115
schedule:
1216
- cron: "0 0 * * *"
1317

0 commit comments

Comments
 (0)