Skip to content

Commit

Permalink
build: auto merge (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
marklechtermann authored Jan 18, 2023
1 parent 478255c commit 3db86a2
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Dependabot auto-approve
name: Dependabot auto-merge
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
Expand All @@ -11,11 +12,11 @@ jobs:
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.1.1
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
- 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 3db86a2

Please sign in to comment.