Skip to content

Commit

Permalink
dependabot automerge: use rebase merge strategy and approve the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-block committed Sep 25, 2024
1 parent b7a3592 commit 494a5d2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,11 @@ jobs:
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
- name: Approve and merge
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
run: gh pr merge --auto --merge "${{github.event.pull_request.html_url}}"
run: |
set -ex
gh pr review --approve "${{github.event.pull_request.html_url}}"
gh pr merge --auto --rebase "${{github.event.pull_request.html_url}}"
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 494a5d2

Please sign in to comment.