Skip to content

Add connected-local Cloud support and Core runtime improvements (#46) #21

Add connected-local Cloud support and Core runtime improvements (#46)

Add connected-local Cloud support and Core runtime improvements (#46) #21

name: Sync Public to Private
on:
push:
branches:
- main # Triggers whenever code is pushed or merged into public main
jobs:
sync:
# This realign (force-push public main -> atomicmemory-internal main) must
# run ONLY from the public repo. The workflow file is mirrored into
# atomicmemory-internal by the public export, so without this guard it also
# fires on internal merges, where SYNC_TOKEN is absent and the push fails
# (and a private->private realign would be meaningless anyway).
if: github.repository == 'atomicstrata/atomicmemory'
runs-on: ubuntu-latest
steps:
- name: Checkout Public Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Push to Private Repo
env:
SYNC_TOKEN: ${{ secrets.SYNC_TOKEN }}
run: |
# Configure Git identities
git config --global user.name "GitHub Action Bot"
git config --global user.email "actions@github.com"
# Add the atomicmemory-internal repository as a secure remote
git remote add private-target "https://x-access-token:${SYNC_TOKEN}@github.com/atomicstrata/atomicmemory-internal.git"
# Force push the main branch to the private repo to ensure perfect alignment
git push private-target HEAD:main --force