Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
ci(workflow): update dependabot auto merge
Browse files Browse the repository at this point in the history
  • Loading branch information
andrmaz authored Feb 26, 2024
1 parent b746182 commit 5b49999
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
name: Dependabot Auto Merge

on:
pull_request_target:
pull_request:

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

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

0 comments on commit 5b49999

Please sign in to comment.