Skip to content

Commit 54bd10b

Browse files
committed
Restrict builds triggered by push to master
In the current configuration, builds run on all branches, including those that are used to submit PRs. For those branches the build workflow runs twice: once triggered by `push` and once triggered by `pull_request`.
1 parent 4dc17b6 commit 54bd10b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/maven.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ name: Java CI
1818
on:
1919
workflow_dispatch:
2020
push:
21+
branches:
22+
- 'master'
2123
paths-ignore:
2224
- '**/workflows/*.yml'
2325
- '!**/workflows/maven.yml'

0 commit comments

Comments
 (0)