diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9172a49c3eb0b4a9f7c4bdb540adb562eba0bfcd..a4b5e739fada1e9c4612e3c83eb0aeb983d6959f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -36,5 +36,6 @@ publishgit-do:
   - apt-get install -y git
   - git remote set-url gith "https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/eflows4hpc/datacatalog.git"
   - git remote -v
-  - git push gith master
+  - git show-ref
+  - git push gith $CI_COMMIT_REF_NAME