diff --git a/.github/workflows/sync_on_push.yaml b/.github/workflows/sync_on_push.yaml index ada74e784..180962985 100644 --- a/.github/workflows/sync_on_push.yaml +++ b/.github/workflows/sync_on_push.yaml @@ -16,10 +16,7 @@ jobs: uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 with: fetch-depth: 0 - - - name: Pull LFS files - run: | - git lfs pull --include "tests/data/**, src/concrete/ml/pandas/_client_server_files/**" --exclude "" + lfs: true - name: Save repo uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 @@ -27,11 +24,14 @@ jobs: name: repo-archive path: '.' + # Initial action can be found here: https://github.com/wei/git-sync + # The issue is that it does not handle LFS files when pushing, so we had to fork it and + # add the feature - name: git-sync - uses: wei/git-sync@55c6b63b4f21607da0e9877ca9b4d11a29fc6d83 + uses: RomanBredehoft/git-sync@836de2d057c5bfae184bc4d45160463fe8653796 with: source_repo: "zama-ai/concrete-ml" source_branch: "main" destination_repo: "https://${{ secrets.BOT_USERNAME }}:${{ secrets.CONCRETE_ACTIONS_TOKEN }}@github.com/${{ secrets.SYNC_DEST_REPO }}" destination_branch: "main" - + push_lfs: true