Skip to content

Commit

Permalink
dependabot-auto-merge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernKW committed Jul 31, 2024
1 parent 2b6b303 commit c4ac076
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build and test

on:
push:
workflow_dispatch:

jobs:
dependabot-auto-merge:
name: Automatically merge Dependabot PRs
needs: build
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit c4ac076

Please sign in to comment.