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:
|
2023-07-28 14:23:32 +02:00
|
|
|
name: Automerge if requested
|
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'
|
2024-04-16 16:39:32 +02:00
|
|
|
uses: pascalgn/automerge-action@v0.16.3
|
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
|