From b71fa3deffdbfab2b5b5bc1459ae5837813f2fdb Mon Sep 17 00:00:00 2001
From: Brent Huisman <brenthuisman@users.noreply.github.com>
Date: Wed, 10 Feb 2021 10:13:06 +0100
Subject: [PATCH] Ebrains mirror update (#1356)

Mirror only master branch and tags.
---
 .github/workflows/ebrains.yml | 28 +++++++++++++++++++---------
 1 file changed, 19 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/ebrains.yml b/.github/workflows/ebrains.yml
index 77bad8a3..7a527e91 100644
--- a/.github/workflows/ebrains.yml
+++ b/.github/workflows/ebrains.yml
@@ -1,13 +1,23 @@
-name: Mirroring
+name: Mirror to Ebrains
 
-on: [push, delete]
+on: push
 
 jobs:
-  to_gitlab:
-    runs-on: ubuntu-20.04
+  to_ebrains:
+    runs-on: ubuntu-latest
     steps:
-    - uses: actions/checkout@v1
-    - uses: pixta-dev/repository-mirroring-action@v1
-      with:
-        target_repo_url:
-          https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/arbor-sim/arbor.git
+      - name: sycnmaster
+        uses: wei/git-sync@v3
+        with:
+          source_repo: "arbor-sim/arbor"
+          source_branch: "master"
+          destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/arbor-sim/arbor.git"
+          destination_branch: "master"
+      - name: synctags
+        uses: wei/git-sync@v3
+        with:
+          source_repo: "arbor-sim/arbor"
+          source_branch: "refs/tags/*"
+          destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/arbor-sim/arbor.git"
+          destination_branch: "refs/tags/*"
+
-- 
GitLab