Skip to content

Commit

Permalink
Create dependabot-automerge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross committed Apr 18, 2024
1 parent 6b55acf commit b1e8367
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/dependabot-automerge.yml
@@ -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 b1e8367

Please sign in to comment.