Skip to content

Commit 25dcf8e

Browse files
committed
chore: fix automerge
1 parent c4fe435 commit 25dcf8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/automerge.yml

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

1919
- name: Approve a PR
20-
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
20+
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' && !startswith(steps.metadata.outputs.new_version, '0.') }}
2121
run: gh pr review --approve "$PR_URL"
2222
env:
2323
PR_URL: ${{ github.event.pull_request.html_url }}
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2525

2626
- name: Enable auto-merge for Dependabot PRs
27-
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' }}
27+
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' && !startswith(steps.metadata.outputs.new_version, '0.') }}
2828
run: gh pr merge --auto --squash "$PR_URL"
2929
env:
3030
PR_URL: ${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)