From 4dcd616cba937cd60e6234b595867914cef6451c Mon Sep 17 00:00:00 2001 From: Roman <56846628+RomanBredehoft@users.noreply.github.com> Date: Wed, 3 Apr 2024 15:01:13 +0200 Subject: [PATCH] chore: fix sync repository action (bis) (#575) --- .github/workflows/sync_on_push.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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