Skip to content

Commit 5368857

Browse files
authored
refactor(dependabot): auto-merge instead of auto-approve (#5487)
1 parent bc5465b commit 5368857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
github-token: "${{ secrets.GITHUB_TOKEN }}"
2121

2222
- name: ✔ Approve a PR
23+
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
2324
run: gh pr review --approve "$PR_URL"
2425
env:
2526
PR_URL: ${{github.event.pull_request.html_url}}
@@ -29,7 +30,6 @@ jobs:
2930
run: echo "Update type is '${{ steps.metadata.outputs.update-type }}'"
3031

3132
- name: 🤖 Enable auto-merge for Dependabot PRs
32-
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
3333
run: gh pr merge --auto --squash "$PR_URL"
3434
env:
3535
PR_URL: ${{github.event.pull_request.html_url}}

0 commit comments

Comments
 (0)