Expose latest SDK and integration updates (#12) #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Public to Private | |
| on: | |
| push: | |
| branches: | |
| - main # Triggers whenever code is pushed or merged into public main | |
| jobs: | |
| sync: | |
| 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 |