Merge pull request 'Modifié : automate.sh' (#10) from test into main

Reviewed-on: #10
This commit is contained in:
guillaume.emorine 2024-04-29 09:52:17 +02:00
commit b561e4241c

View File

@ -33,17 +33,17 @@ if [ $branch == 1 ] ; then
else
if [ $answer == 1 ] ; then
git checkout test
echo "Récupération des fichiers à jour dans la branche tests..."
git pull origin tests
echo "Récupération des fichiers à jour dans la branche test..."
git pull origin test
else
git checkout test
echo "Ajout des fichiers au Gitea, branche tests..."
echo "Ajout des fichiers au Gitea, branche test..."
sleep 2
git add .
echo "Commit en cours..."
sleep 2
git commit
echo "Push des fichiers au Gitea, branche tests..."
echo "Push des fichiers au Gitea, branche test..."
sleep 2
git push origin test
fi