Skip to content

Commit

Permalink
Create dependabot-auto-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
joffrey-bion authored Jan 8, 2025
1 parent b36c4eb commit 2f644b3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/dependabot-auto-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: dependabot-auto-merge

on: pull_request

jobs:
auto-merge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
# "gh pr" command requires that we are in a git repository
- name: Checkout repository
uses: actions/checkout@v4

- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --rebase ${{ github.event.pull_request.number }}
env:
GH_TOKEN: ${{ secrets.GH_PAT }}

0 comments on commit 2f644b3

Please sign in to comment.