From 473ed89241abd753ed3041c038b37e5913379b20 Mon Sep 17 00:00:00 2001
From: Chetouane <elias.chetouane@univ-grenoble-alpes.fr>
Date: Wed, 17 Jan 2024 14:49:29 +0100
Subject: [PATCH] Essai de remote avant le push.

---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4ae42dd..9c66c4a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,9 +12,10 @@ build-dois-csv:
   after_script:
     - git config user.name "${GITLAB_USER_NAME}"
     - git config user.email "${GITLAB_USER_EMAIL}"
+    - git remote set-url --push origin "git@gricad-gitlab:${CI_PROJECT_PATH}.git"
     - git add -f dois-uga.csv 2-produce-graph/hist-evol-datasets-per-repo.png 2-produce-graph/hist-quantity-year-type.png 2-produce-graph/pie--datacite-client.png 2-produce-graph/pie--datacite-type.png
     - git commit -m "Nouvelle execution du pipeline"
-    - git push HEAD:main --force
+    - git push $CI_COMMIT_REF_NAME
   
   artifacts:
     paths:
-- 
GitLab