From e3b49f1a29a74db2f95949efc4cf324f2d16fed6 Mon Sep 17 00:00:00 2001 From: Michael McLoughlin Date: Sun, 8 May 2022 15:50:22 -0700 Subject: [PATCH] ci: do not auto-merge draft pull requests (#282) Provide a mechanism for testing workflows that create pull requests. --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index adfd1ad..76b1574 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -14,7 +14,7 @@ jobs: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Automerge Bot Pull Requests - if: ${{ github.actor == 'cadobot[bot]' }} + if: github.actor == 'cadobot[bot]' && !github.event.pull_request.draft run: gh pr merge --auto --squash "${{ github.event.pull_request.html_url }}" env: GITHUB_TOKEN: ${{ steps.bot.outputs.token }}