Modifié : automate.sh #10

Merged
guillaume.emorine merged 1 commits from test into main 2024-04-29 09:52:17 +02:00

View File

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