FreeTube/.github/workflows/autoMerge.yml

18 lines
645 B
YAML
Raw Normal View History

2021-08-20 16:49:25 +02:00
name: Auto Merge PR
2021-08-19 23:28:39 +02:00
on:
2021-08-20 16:48:24 +02:00
pull_request_target:
types: [opened, synchronize, reopened, auto_merge_disabled, ready_for_review]
2021-08-19 23:28:39 +02:00
jobs:
build:
2021-08-20 05:52:14 +02:00
runs-on: ubuntu-latest
2021-08-19 23:28:39 +02:00
steps:
2021-08-20 05:38:49 +02:00
- name: Auto Merge PR
if: github.event.pull_request.draft == false && (contains(${{ github.event.pull_request.base.ref }}, 'development') || contains(${{ github.event.pull_request.base.ref }}, 'RC'))
2021-08-20 05:38:49 +02:00
run: |
2021-08-20 16:49:25 +02:00
echo ${{ secrets.PUSH_TOKEN }} >> auth.txt
2021-08-20 05:38:49 +02:00
gh auth login --with-token < auth.txt
rm auth.txt
2021-08-20 05:53:05 +02:00
gh pr merge https://github.com/FreeTubeApp/FreeTube/pull/${{ github.event.pull_request.number }} --auto --squash