Skip to content

Commit f4dce15

Browse files
authored
Merge pull request #1553 from db-ui/refactor-updated-auto-merge-capability
refactor: updated auto-merge capability
2 parents ec8c877 + daa9662 commit f4dce15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/99-auto-merge.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,20 @@ jobs:
88
runs-on: ubuntu-latest
99
if: ${{ github.actor == 'dependabot[bot]' }}
1010
steps:
11-
- name: Dependabot metadata
11+
- name: Dependabot metadata
1212
id: metadata
1313
uses: dependabot/fetch-metadata@v2
1414
with:
1515
github-token: "${{ secrets.GITHUB_TOKEN }}"
16+
1617
- name: ✔ Approve a PR
1718
run: gh pr review --approve "$PR_URL"
1819
env:
1920
PR_URL: ${{github.event.pull_request.html_url}}
2021
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
22+
2123
- name: 🤖 Enable auto-merge for Dependabot PRs
24+
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
2225
run: gh pr merge --auto --squash "$PR_URL"
2326
env:
2427
PR_URL: ${{github.event.pull_request.html_url}}

0 commit comments

Comments
 (0)