From 606da57de0ac283c98d9922a1f16f941048a0f11 Mon Sep 17 00:00:00 2001 From: bstocker Date: Tue, 12 Mar 2024 14:36:21 +0100 Subject: [PATCH] Update CICD.yml --- .github/workflows/CICD.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index bf4a84ca..815327d2 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -24,11 +24,11 @@ jobs: password: ${{ secrets.PASSWORD }} script: | last_directory=$(basename ${{ runner.workspace }}) - cd $HOME/ + cd $HOME/www/ git clone https://github.com/${{ github.repository }}.git # Vérifier si le répertoire de destination existe - if [ "$(ls -A ./www)" ]; then - rsync -r ./$last_directory/ ./www + if [ "$(ls -A ./../www)" ]; then + rsync -r ./$last_directory/ ./../www rm -rf ./$last_directory else echo "Le répertoire flask de destination sur votre serveur n'existe pas"