Skip to content

Commit

Permalink
chore(build): Switch to dependabot auto merge
Browse files Browse the repository at this point in the history
  • Loading branch information
bcelenza committed Apr 15, 2024
1 parent 04fa16e commit 29a5ded
Showing 1 changed file with 6 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,12 @@ jobs:
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
- name: Enable auto-merge for Dependabot PRs
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 29a5ded

Please sign in to comment.