From 926070b7b8c81d523fffd6ecb8fc93dd104ce0fd Mon Sep 17 00:00:00 2001 From: missing-user <58512364+missing-user@users.noreply.github.com> Date: Mon, 6 May 2024 23:06:55 +0200 Subject: [PATCH] Create dependamerge.yml --- .github/workflows/dependamerge.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/dependamerge.yml diff --git a/.github/workflows/dependamerge.yml b/.github/workflows/dependamerge.yml new file mode 100644 index 0000000..3edeaa4 --- /dev/null +++ b/.github/workflows/dependamerge.yml @@ -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/github-script@0.2.0 + 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}}