Skip to content

Commit

Permalink
Create dependamerge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
missing-user authored May 6, 2024
1 parent 4295dc5 commit 926070b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dependamerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Dependabot Automerge - Action"

on:
pull_request:

jobs:
worker:
runs-on: ubuntu-latest

if: github.actor == 'dependabot[bot]'
steps:
- name: automerge
uses: actions/[email protected]
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
})
github-token: ${{github.token}}

0 comments on commit 926070b

Please sign in to comment.