Skip to content

Commit

Permalink
Enable auto-merge for non-major updates
Browse files Browse the repository at this point in the history
  • Loading branch information
deptyped committed May 23, 2024
1 parent 2698254 commit 019e620
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ jobs:
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Auto-merge
if: >
${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' &&
steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
Expand Down

0 comments on commit 019e620

Please sign in to comment.