mirror of
https://github.com/PostHog/posthog.git
synced 2024-12-01 04:04:16 +01:00
8fd0f7a3f9
* ci: Fix CI for forks * Try updating snapshots on forks * Try fixing snapshot verification instead * Consolidate Docker-related workflows * Run visual regression tests * Update ci-e2e.yml * Use fork's GHCR * Try Depot caching approach instead of GHCR * Lowercase reference * Update E2E tests paths filter * Fix permissions * Debug .env * Fix double checkout * Remove obsolete release workflows * Fix formatting * Also run plugin server tests for good measure * Clarify automerge job name * Describe action inputs * Refactor E2E workflow for clarity and comments * Use project ID from depot.json
36 lines
837 B
YAML
36 lines
837 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 if requested
|
|
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.15.5
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
|
|
- run: echo
|