Skip to content

Commit 8b2db19

Browse files
committed
.github: filter pushes and pull request builds
Only trigger builds on pushes and pull request on master branch. Signed-off-by: Octavian Purdila <tavi@cs.pub.ro>
1 parent 5772f8a commit 8b2db19

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
on: [push, pull_request]
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
branches:
7+
- master
28

39
jobs:
410
build_job:
@@ -34,4 +40,3 @@ jobs:
3440
git add $PUB_PATH
3541
git commit --allow-empty -m "Publish $PUB_PATH (built from linux-kernel-labs/linux/$GITHUB_REF)"
3642
git push
37-

0 commit comments

Comments
 (0)