Skip to content

Commit f206dcd

Browse files
committed
ci: add semver filtering to Dependabot auto-merge (patch/minor only)
1 parent b2fa175 commit f206dcd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ jobs:
1717
with:
1818
github-token: "${{ secrets.GITHUB_TOKEN }}"
1919

20-
- name: Approve PR
20+
- name: Approve patch and minor updates
21+
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
2122
run: gh pr review --approve "$PR_URL"
2223
env:
2324
PR_URL: ${{ github.event.pull_request.html_url }}
2425
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2526

26-
- name: Auto-merge PR
27+
- name: Auto-merge patch and minor updates
28+
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
2729
run: gh pr merge --auto --squash "$PR_URL"
2830
env:
2931
PR_URL: ${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)