build: enable auto-merger workflow 🎢 (#670)

* 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>
This commit is contained in:
Vinayak Kulkarni 2022-12-11 02:45:43 +05:30 committed by GitHub
parent 63701471d4
commit e345ebe43a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
.github/workflows/automerger.yml vendored Normal file
View file

@ -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 }}