From b291ffb8200a4133df1d470224e4d7034d9a2954 Mon Sep 17 00:00:00 2001 From: Elias Chetouane <elias.chetouane@univ-grenoble-alpes.fr> Date: Tue, 20 Feb 2024 12:08:34 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20clone=20avec=20cr=C3=A9ation=20d'u?= =?UTF-8?q?n=20dossier=20pour=20contenir=20le=20repo=20clon=C3=A9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ebc3411..038acca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,8 +23,12 @@ actualisation_dois: - git push origin HEAD:${CI_COMMIT_REF_NAME} - cd .. - - cp open-research-data-monitor-back/1-enrich-with-datacite/nb-dois.txt ${PATH_TO_PUSH} - - cd ${PATH_TO_PUSH} + - mkdir cloned_repo + - cd cloned_repo + - git clone ${LINK_TO_CLONE} + - cd - + - cp open-research-data-monitor-back/1-enrich-with-datacite/nb-dois.txt cloned_repo/${PATH_TO_PUSH} + - cd cloned_repo/${PATH_TO_PUSH} - git config user.name "${GITLAB_USER_NAME}" - git config user.email "${GITLAB_USER_EMAIL}" - git remote set-url --push origin "https://PUSH_TOKEN2:${ACCESS_TOKEN2}@gricad-gitlab.univ-grenoble-alpes.fr/${PROJECT_PATH2}.git" -- GitLab