Skip to content

Commit

Permalink
Create dependabot-automerge.yml (#1879)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross authored Apr 17, 2024
1 parent 82c92e4 commit 85d1d09
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Dependabot Automerge
on: pull_request

permissions:
contents: write

jobs:
dependabot-automerge:
runs-on: ubuntu-latest
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{ github.token }}
steps:
- name: describe for '${{ github.event.pull_request.title }}'
run: |
printf "github.actor == '%s'\n" "${{ github.actor }}"
- name: merge
run: gh pr merge --auto --squash --delete-branch "$PR_URL"
if: ${{ github.actor == 'dependabot[bot]'
}}

0 comments on commit 85d1d09

Please sign in to comment.