File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 41
41
java-version : ${{ matrix.java }}
42
42
- name : Build with Maven
43
43
run : mvn -B package --file pom.xml
44
+
45
+ auto-merge :
46
+ runs-on : ubuntu-latest
47
+ needs : [ build ]
48
+ if : github.base_ref == 'master' && github.actor == 'dependabot[bot]'
49
+ steps :
50
+ - uses : actions/github-script@0.2.0
51
+ with :
52
+ script : |
53
+ github.pullRequests.createReview({
54
+ owner: context.payload.repository.owner.login,
55
+ repo: context.payload.repository.name,
56
+ pull_number: context.payload.pull_request.number,
57
+ event: 'APPROVE'
58
+ })
59
+ github.pullRequests.merge({
60
+ owner: context.payload.repository.owner.login,
61
+ repo: context.payload.repository.name,
62
+ pull_number: context.payload.pull_request.number,
63
+ merge_method: 'squash'
64
+ })
65
+ github-token : ${{ secrets.AUTOMERGE }}
You can’t perform that action at this time.
0 commit comments