From 5c336f6861df792207df197b7507b1531dcb63ab Mon Sep 17 00:00:00 2001 From: Elias Chetouane <elias.chetouane@univ-grenoble-alpes.fr> Date: Fri, 23 Feb 2024 15:30:35 +0100 Subject: [PATCH] =?UTF-8?q?R=C3=A9glage=20du=20cd=20pour=20permettre=20le?= =?UTF-8?q?=20cp.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3e48fc2..b3c42eb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,8 +30,9 @@ actualisation_dois: - git push origin HEAD:${CI_COMMIT_REF_NAME} # création d'un espace accueillant le clone du repo du site web, et tests au cas où l'espace existe déjà - - if ! [ -d "../cloned_repo" ]; then mkdir ../cloned_repo; fi - - if [ -d "../cloned_repo/${PATH_TO_PUSH}" ]; then cd ../cloned_repo/${PATH_TO_PUSH}; git pull; else cd ../cloned_repo; git clone ${LINK_TO_CLONE}; fi + - cd .. + - if ! [ -d "cloned_repo" ]; then mkdir ../cloned_repo; fi + - if [ -d "cloned_repo/${PATH_TO_PUSH}" ]; then cd cloned_repo/${PATH_TO_PUSH}; git pull; else cd cloned_repo; git clone ${LINK_TO_CLONE}; fi - cd - # copier le fichier "nb-dois.txt" pour commit dans le repo du site web - cp open-research-data-monitor-back/1-enrich-with-datacite/nb-dois.txt cloned_repo/${PATH_TO_PUSH} -- GitLab