ci: do not auto-merge draft pull requests (#282)
Provide a mechanism for testing workflows that create pull requests.
This commit is contained in:
committed by
GitHub
parent
4ca3d8a29f
commit
e3b49f1a29
2
.github/workflows/pr.yml
vendored
2
.github/workflows/pr.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user