Skip to content

Commit

Permalink
Automatically enable automerge on dependabot prs
Browse files Browse the repository at this point in the history
  • Loading branch information
Defelo committed Sep 1, 2023
1 parent b44d17e commit f8cc0d9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: automerge

on: pull_request

permissions:
pull-requests: write
contents: write

jobs:
automerge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Enable Pull Request Automerge
run: gh pr merge --squash --auto --repo "${{ github.repository }}" "${{ github.event.pull_request.number }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f8cc0d9

Please sign in to comment.