From f664f8d98464b11a8cdbe1e5825bc3a2b9fdbb21 Mon Sep 17 00:00:00 2001 From: Patrick Organ Date: Sun, 19 Nov 2023 06:21:54 -0500 Subject: [PATCH] make dependabot auto-merge more concise and efficient --- .github/workflows/dependabot-auto-merge.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index ca2197d..b34f094 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -17,15 +17,8 @@ jobs: with: github-token: "${{ secrets.GITHUB_TOKEN }}" - - name: Auto-merge Dependabot PRs for semver-minor updates - if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}} - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - - name: Auto-merge Dependabot PRs for semver-patch updates - if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}} + - name: Auto-merge Dependabot PRs for semver-minor/patch updates + if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}} run: gh pr merge --auto --merge "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}}