Skip to content

Commit

Permalink
Update CICD.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bstocker authored Mar 12, 2024
1 parent 3c2730a commit 606da57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 606da57

Please sign in to comment.