From 6aceefa6b1c2fb38218145923e6561ab0a6474f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rinc=C3=B3n?= <52975165+cristian-rincon@users.noreply.github.com> Date: Thu, 5 Oct 2023 16:42:20 -0500 Subject: [PATCH] Update dependabot-auto-merge.yml --- .github/workflows/dependabot-auto-merge.yml | 23 +++++---------------- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 3edeaa4..a37894f 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -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}}