Skip to content

Commit

Permalink
Add automerge workflow (#36)
Browse files Browse the repository at this point in the history
* Add automerge workflow

* Update automerge.yml

* Update automerge.yml
  • Loading branch information
razor-x authored Mar 1, 2024
1 parent 415e058 commit f4c2e54
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Automerge

on:
pull_request:
branches:
- main

jobs:
merge:
name: Merge #${{ number }}
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 f4c2e54

Please sign in to comment.