Skip to content

Commit

Permalink
chore: auto merge dependabot PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlaessig committed Sep 26, 2024
1 parent 7c73d1d commit 5640563
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/depdendabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Approve and auto-merge dep PRs

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: write
pull-requests: write

jobs:
automerge:
if: ${{ contains(github.head_ref, 'dependabot/npm_and_yarn') }}
needs: verify
runs-on: ubuntu-latest
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
steps:
- name: Approve PR
run: gh pr review --approve "$PR_URL"
- name: Enable auto merge
run: gh pr merge --auto --merge "$PR_URL"

0 comments on commit 5640563

Please sign in to comment.