ci: do not auto-merge draft pull requests (#282)

Provide a mechanism for testing workflows that create pull requests.
This commit is contained in:
Michael McLoughlin
2022-05-08 15:50:22 -07:00
committed by GitHub
parent 4ca3d8a29f
commit e3b49f1a29

View File

@@ -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 }}