diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index cbeb8166..1a20fa34 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -8,7 +8,7 @@ permissions: jobs: autobot: runs-on: ubuntu-latest - if: (github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]') && github.repository == 'pyiron/atomistics' + if: (github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]') && github.event.pull_request.conclusion == 'success' && github.repository == 'pyiron/atomistics' steps: - name: Enable auto-merge for bot PRs run: gh pr merge --auto --squash "$PR_URL"