-
Notifications
You must be signed in to change notification settings - Fork 119
40 lines (34 loc) · 951 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
java: [8, 11, 16]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Build
run: mvn --no-transfer-progress -B clean package --file pom.xml
automerge:
runs-on: [ubuntu-20.04]
name: automerge
needs: [build]
if: github.base_ref == 'main' && github.actor == 'dependabot[bot]'
steps:
- name: merge
uses: actions/github-script@v3
with:
script: |
github.pulls.merge({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number,
merge_method: 'squash'
})
github-token: ${{secrets.GITHUB_TOKEN}}