-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (42 loc) · 1.22 KB
/
maven.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
41
42
43
44
45
46
47
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: build
on:
push:
branches: [develop]
pull_request:
branches: [develop]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 17
- name: Verify with Maven
run: mvn -B verify --file pom.xml
dependabot-merge:
needs: build
permissions:
contents: write
pull-requests: write
if: |
github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Find associated PR
uses: jwalton/gh-find-current-pr@v1
id: findpr
with:
github-token: ${{ github.token }}
state: open
sha: ${{ github.event.pull_request.head.sha || github.event.workflow_run.head_sha || github.sha }}
- name: merge-if-built
continue-on-error: true
uses: fastify/github-action-merge-dependabot@v3
with:
pr-number: ${{ steps.findpr.outputs.pr }}
target: minor