Skip to content

Commit

Permalink
Add automerge workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Mar 1, 2024
1 parent f9104b7 commit 5136840
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Automerge

on:
pull_request:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
merge:
name: Merge
runs-on: ubuntu-latest
timeout-minutes: 30
if: github.actor == 'dependabot[bot]'
steps:
- name: Approve pull request
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Merge pull request
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit 5136840

Please sign in to comment.