Skip to content

Sync repos

Sync repos #485

Workflow file for this run

# Sync repos
name: Sync repos
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
sync-repo:
if: ${{ github.repository == 'zama-ai/concrete-ml' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
with:
fetch-depth: 0
lfs: true
ref: "main"
- name: Custom git-sync
run: |
PRIVATE_REPO="https://${{ secrets.BOT_USERNAME }}:${{ secrets.CONCRETE_ACTIONS_TOKEN }}@github.com/${{ secrets.SYNC_DEST_REPO }}"
git remote add private_repo "$PRIVATE_REPO"
echo "Push LFS files:"
# git lfs push private_repo "${SOURCE_BRANCH}:${DESTINATION_BRANCH}"
# git lfs push private_repo main --dry-run
echo "Push remaining files:"
# git push private_repo "${SOURCE_BRANCH}:${DESTINATION_BRANCH}" -f
git push private_repo -f main --dry-run