Skip to content

Commit

Permalink
Automerges Dependabot PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszlenart committed Nov 8, 2022
1 parent 102fe37 commit aab7d5c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,15 @@ jobs:
java-version: ${{ matrix.java }}
- name: Build with Maven on Java ${{ matrix.java }}
run: mvn -V test -Ddoclint=all --file pom.xml --no-transfer-progress
- name: Apply automerge label
if: github.actor == 'dependabot[bot]'
run: gh pr edit "$PR_URL" --add-label "automerge"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}
- name: Automerge
if: github.actor == 'dependabot[bot]'
run: gh pr merge -m "$PR_URL"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}

0 comments on commit aab7d5c

Please sign in to comment.