From 00427efe351aaf905c07e9aa3b3f54ab53d6a23c Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 6 Jan 2025 15:42:11 -0500 Subject: [PATCH] fix: only enable automerge when PR is created --- .github/workflows/update-browserslist-db.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-browserslist-db.yml b/.github/workflows/update-browserslist-db.yml index 83e5a4f..3eae7b7 100644 --- a/.github/workflows/update-browserslist-db.yml +++ b/.github/workflows/update-browserslist-db.yml @@ -41,6 +41,7 @@ jobs: GH_TOKEN: ${{ secrets.requirements_bot_github_token }} - name: Enable Pull Request Automerge + if: steps.cpr.outputs.pull-request-operation == 'created' run: gh pr merge --squash --auto "${{ steps.cpr.outputs.pull-request-number }}" env: GH_TOKEN: ${{ secrets.requirements_bot_github_token }}