freetube/.github/workflows/autoMerge.yml

18 lines
581 B
YAML
Raw Permalink Normal View History

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