Make the auto merge workflow compatible with draft PRs (#2896)

This commit is contained in:
absidue 2022-11-28 02:05:32 +01:00 committed by GitHub
parent e990af9aa9
commit ba1bf4ba20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
name: Auto Merge PR
on:
pull_request_target:
types: [opened, synchronize, reopened, auto_merge_disabled]
types: [opened, synchronize, reopened, auto_merge_disabled, ready_for_review]
jobs:
build:
@ -9,7 +9,7 @@ jobs:
steps:
- name: Auto Merge PR
if: contains(${{ github.event.pull_request.base.ref }}, 'development') || contains(${{ github.event.pull_request.base.ref }}, 'RC')
if: github.event.pull_request.draft == false && (contains(${{ github.event.pull_request.base.ref }}, 'development') || contains(${{ github.event.pull_request.base.ref }}, 'RC'))
run: |
echo ${{ secrets.PUSH_TOKEN }} >> auth.txt
gh auth login --with-token < auth.txt