From 2f6e4eb2105873e102a6ff8b725615ec44866562 Mon Sep 17 00:00:00 2001
From: korvoj <korvoj@users.noreply.github.com>
Date: Thu, 24 Nov 2022 21:57:30 +0100
Subject: [PATCH] Add git-sync GitHub action

---
 .github/workflows/git-sync.yml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 .github/workflows/git-sync.yml

diff --git a/.github/workflows/git-sync.yml b/.github/workflows/git-sync.yml
new file mode 100644
index 00000000..0dba40be
--- /dev/null
+++ b/.github/workflows/git-sync.yml
@@ -0,0 +1,14 @@
+on: push
+jobs:
+  git-sync:
+    runs-on: self-hosted
+    steps:
+      - name: git-sync
+        uses: wei/git-sync@v3
+        with:
+          source_repo: 'git@github.com:nmaas-platform/nmaas-portal.git'
+          source_branch: 'refs/remotes/source/*'
+          destination_repo: 'git@gitlab.geant.org:nmaas/nmaas-portal.git'
+          destination_branch: 'refs/heads/*'
+          source_ssh_private_key: ${{ secrets.SOURCE_SSH_PRIVATE_KEY }}
+          destination_ssh_private_key: ${{ secrets.DESTINATION_SSH_PRIVATE_KEY }}
\ No newline at end of file
-- 
GitLab