2021-04-08 20:22:39 +02:00
|
|
|
name: Automerge
|
2021-04-08 14:13:10 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
MERGE_METHOD: 'squash'
|
2021-04-08 14:28:10 +02:00
|
|
|
MERGE_RETRY_SLEEP: 300000
|
2021-04-08 14:13:10 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- labeled
|
|
|
|
- unlabeled
|
|
|
|
- synchronize
|
|
|
|
- opened
|
|
|
|
- edited
|
|
|
|
- ready_for_review
|
|
|
|
- reopened
|
|
|
|
- unlocked
|
|
|
|
check_suite:
|
|
|
|
types:
|
|
|
|
- completed
|
|
|
|
status: {}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
automerge:
|
2021-06-17 00:22:23 +02:00
|
|
|
name: Automerge
|
2021-04-08 14:13:10 +02:00
|
|
|
runs-on: ubuntu-latest
|
2021-06-17 00:22:23 +02:00
|
|
|
env:
|
|
|
|
IS_POSTHOG_BOT_AVAILABLE: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN != '' }}
|
2021-04-08 14:13:10 +02:00
|
|
|
steps:
|
2021-04-08 20:22:39 +02:00
|
|
|
- name: Automerge
|
2021-06-17 00:22:23 +02:00
|
|
|
if: env.IS_POSTHOG_BOT_AVAILABLE == 'true'
|
|
|
|
uses: pascalgn/automerge-action@v0.14.2
|
2021-04-08 14:13:10 +02:00
|
|
|
env:
|
2021-06-17 00:22:23 +02:00
|
|
|
GITHUB_TOKEN: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
|
|
|
|
- run: echo
|