mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2025-01-05 17:15:12 +01:00
Make the auto merge workflow compatible with draft PRs (#2896)
This commit is contained in:
parent
e990af9aa9
commit
ba1bf4ba20
4
.github/workflows/autoMerge.yml
vendored
4
.github/workflows/autoMerge.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user