From e345ebe43aa7405730297d1fdad5de6c8116a5f2 Mon Sep 17 00:00:00 2001 From: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> Date: Sun, 11 Dec 2022 02:45:43 +0530 Subject: [PATCH] =?UTF-8?q?build:=20enable=20auto-merger=20workflow=20?= =?UTF-8?q?=F0=9F=8E=A2=20(#670)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: enable auto-merger workflow Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> * fix: update automerge job to run for dependabot user Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> * chore: enable permissions for the whole workflow Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> --- .github/workflows/automerger.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/automerger.yml diff --git a/.github/workflows/automerger.yml b/.github/workflows/automerger.yml new file mode 100644 index 0000000..78607f4 --- /dev/null +++ b/.github/workflows/automerger.yml @@ -0,0 +1,20 @@ +name: 'Auto Merge PRs' + +on: + pull_request: + branches: + - master + +permissions: + pull-requests: write + contents: write + +jobs: + automerge: + runs-on: ubuntu-latest + if: > + github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' + steps: + - uses: fastify/github-action-merge-dependabot@v3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }}