Skip to content

Commit

Permalink
Add dependabot automerge
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloLec authored May 14, 2024
1 parent e2e04fc commit 08ba2a6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main

jobs:
build:
test:
runs-on: ubuntu-latest

steps:
Expand All @@ -32,3 +32,15 @@ jobs:
- name: Build and test with Maven
run: mvn clean install -DskipTests=false -Dmaven.test.failure.ignore=false

automerge-dependabot:
runs-on: ubuntu-latest
needs: test
if: github.actor == 'dependabot[bot]' && github.event.pull_request.user.login == 'dependabot[bot]'
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 }}
GH_TOKEN: ${{ secrets.DEPENDABOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_TOKEN }}

0 comments on commit 08ba2a6

Please sign in to comment.