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 Apr 13, 2024
1 parent 0f4e201 commit c130461
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 c130461

Please sign in to comment.