Skip to content

Commit

Permalink
Merge pull request #3226 from zinduolis/add_enable_auto_merge
Browse files Browse the repository at this point in the history
Add enable auto merge to dependabot yml
  • Loading branch information
zinduolis authored Nov 21, 2024
2 parents bbeb8cd + 355ee93 commit d85e14c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Enable Auto-Merge
run: gh pr merge --enable-auto-merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Enable auto-merge for Dependabot PRs
if: success() && (steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch')
run: gh pr merge --auto --merge "$PR_URL"
Expand Down

0 comments on commit d85e14c

Please sign in to comment.