Skip to content

Commit

Permalink
Added dependabot auto-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
hbelmiro authored Mar 16, 2024
1 parent ae7d2d7 commit 93e356b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,16 @@ jobs:
cache: maven
- name: Build with Maven
run: mvn -B verify --file pom.xml

dependabot:
permissions: write-all
name: 'Dependabot'
needs: [ build ]
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 93e356b

Please sign in to comment.