mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
4bd79a27b7
* Remove commented out test
* Update VERSION
* Don't run the automerge job on forks
* Revert "Update VERSION"
This reverts commit dc37f20133
.
* Change automerge condition
* Change automerge condition a bit more
* Try scrolling
* Scroll by more
* Stop GitHub complaining about no jobs ran in a workflow
* Search for a different event name
* Try a different operator
* Don't default branch push jobs on forks
* Move clicks around
Co-authored-by: PostHog Bot <hey@posthog.com>
36 lines
824 B
YAML
36 lines
824 B
YAML
name: Automerge
|
|
|
|
env:
|
|
MERGE_METHOD: 'squash'
|
|
MERGE_RETRY_SLEEP: 300000
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- labeled
|
|
- unlabeled
|
|
- synchronize
|
|
- opened
|
|
- edited
|
|
- ready_for_review
|
|
- reopened
|
|
- unlocked
|
|
check_suite:
|
|
types:
|
|
- completed
|
|
status: {}
|
|
|
|
jobs:
|
|
automerge:
|
|
name: Automerge
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
IS_POSTHOG_BOT_AVAILABLE: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN != '' }}
|
|
steps:
|
|
- name: Automerge
|
|
if: env.IS_POSTHOG_BOT_AVAILABLE == 'true'
|
|
uses: pascalgn/automerge-action@v0.14.2
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
|
|
- run: echo
|