Skip to content
Snippets Groups Projects
Commit 5c336f68 authored by Elias Chetouane's avatar Elias Chetouane
Browse files

Réglage du cd pour permettre le cp.

parent f8b95dfa
No related branches found
No related tags found
No related merge requests found
......@@ -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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment