0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
posthog/.github/workflows/posthog-foss.yml
Michael Matloka 200b80dd03
Chart above fold (#3142)
* Update TrendInsight minHeight to keep chart above the fold

* Refactor Insights main content for clarity

* Fix PostHog FOSS sync

* Remove extraneous div
2021-02-01 11:22:55 +01:00

36 lines
1.4 KiB
YAML

name: PostHog FOSS
on:
push:
branches:
- master
- main
jobs:
repo-sync:
name: Sync posthog-foss with posthog
runs-on: ubuntu-latest
steps:
- name: Sync repositories 1 to 1
uses: ungless/git-sync@master # tag syncing is not currently part of wei/git-sync
with:
source_repo: 'https://${{ secrets.SYNC_GITHUB_TOKEN }}@github.com/posthog/posthog.git'
source_branch: 'master'
destination_repo: 'https://${{ secrets.SYNC_GITHUB_TOKEN }}@github.com/posthog/posthog-foss.git'
destination_branch: 'master'
- name: Checkout posthog-foss
uses: actions/checkout@v2
with:
repository: 'posthog/posthog-foss'
ref: master
token: ${{ secrets.SYNC_GITHUB_TOKEN }} # SYNC_GITHUB_TOKEN is a PAT token with the workflows scope which is not in GITHUB_TOKEN
- name: Commit "Sync and remove all non-FOSS parts"
uses: EndBug/add-and-commit@v7
with:
author_name: PostHog Bot
author_email: hey@posthog.com
message: 'Sync and remove all non-FOSS parts'
remove: '["-r ee/", "-r .github/"]'
env:
GITHUB_TOKEN: ${{ secrets.SYNC_GITHUB_TOKEN }}