Skip to content

Commit

Permalink
Update dependabot-auto-merge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cristian-rincon authored Oct 5, 2023
1 parent 167c68a commit 6aceefa
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
name: "Dependabot Automerge - Action"
name: auto-merge

on:
pull_request:

jobs:
worker:
auto-merge:
runs-on: ubuntu-latest

if: github.actor == 'dependabot[bot]'
steps:
- name: automerge
uses: actions/github-script@0.2.0
- uses: actions/checkout@v2
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
script: |
github.pullRequests.createReview({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number,
event: 'APPROVE'
})
github.pullRequests.merge({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number
})
target: minor
github-token: ${{github.token}}

0 comments on commit 6aceefa

Please sign in to comment.