From 0fe1192a554ff5e0c8b44f6b06844ed30e614fac Mon Sep 17 00:00:00 2001
From: "azzeddine.simmad" <azzeddine.simmad@4d.com>
Date: Tue, 10 Dec 2024 11:41:03 +0100
Subject: [PATCH] Add synch job to the build.yml file

---
 .github/workflows/build.yml | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ab6b6668..72d96005 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,11 +1,8 @@
 name: Build
 on:
   push:
-    paths:
-      - '**.4dm'
   pull_request:
-    paths:
-      - '**.4dm'
+  delete:
   workflow_dispatch:
 
 jobs:
@@ -14,7 +11,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [ macos-latest, windows-latest, ubuntu-latest ]
+        os: [ macos-latest, windows-latest, ubuntu-24.04 ]
     runs-on: ${{ matrix.os }}
     steps:
     - name: Checkout
@@ -31,3 +28,18 @@ jobs:
         version: vcs
         build: official
         token: ${{ secrets.DLTK }}
+  sync:
+    needs: ["build"]
+    runs-on: [self-hosted, macOS, ARM64]
+    name: Git Repo Sync
+    steps:
+    - uses: actions/checkout@v4
+      with:
+        fetch-depth: 0
+        lfs: true 
+    - uses: wangchucheng/git-repo-sync@v0.1.0
+      with:
+        target-url: ${{ secrets.TARGET_URL }}
+        target-username: ${{ secrets.TARGET_USERNAME }}
+        target-token: ${{ secrets.TARGET_TOKEN }}
+