Skip to content

Commit

Permalink
Create dependabot-automerge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross authored and andres-erbsen committed Apr 13, 2024
1 parent 8377ad7 commit 6c63c08
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Dependabot Automerge
on: pull_request

permissions:
contents: write

jobs:
dependabot-automerge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{ github.token }}
steps:
#- name: approve
# run: gh pr review --approve "$PR_URL"
- name: merge
run: gh pr merge --auto --squash --delete-branch "$PR_URL"

0 comments on commit 6c63c08

Please sign in to comment.