Skip to content

Commit

Permalink
Update dependabot-automerge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
branlwyd authored Dec 12, 2023
1 parent f09b19c commit df63ba4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Dependabot auto-merge
on: pull_request
on:
pull_request:
types: [opened, reopened]

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' && github.event.review.state != 'APPROVED' }}
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Approve & enable auto-merge for Dependabot PRs
run: gh pr review --approve -b "Auto-approving dependabot PR." "$PR_URL" && gh pr merge --auto --squash "$PR_URL"

0 comments on commit df63ba4

Please sign in to comment.