From c602e227b0b6df82ec55b809a027765cee7a408c Mon Sep 17 00:00:00 2001
From: Jedrzej Rybicki <j.rybicki@fz-juelich.de>
Date: Thu, 20 Jan 2022 14:21:22 +0100
Subject: [PATCH] publish to main branch

---
 .gitlab-ci.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 560b377..927f38c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -246,9 +246,9 @@ publishgit-do:
     - apt-get install -y git
     - (git remote -v | grep gith) || git remote add gith "https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/eflows4hpc/datacatalog.git"
     - git remote -v
-    - git show-ref
-    - export
-    - git push gith $CI_COMMIT_REF_NAME
+    - git fetch --unshallow origin
+    - git push gith +HEAD:refs/heads/main
+
 
 
 # This is an automatic push of the docker image into gitLab container repository
-- 
GitLab