Update .gitlab-ci.yml file

This commit is contained in:
Adrien Bourmault 2022-10-10 16:48:49 +00:00
parent 1a444ebded
commit cf1edd462f
1 changed files with 4 additions and 3 deletions

View File

@ -33,10 +33,11 @@ test-job: # This job runs in the test stage.
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
echo "Pipeline exceptionnel"
fi
if [ ! "$files" =~ .*"zone".* ]; then
echo "Pas de fichier de zone à tester"
else
if [ "$files" =~ .*"zone".* ]
then
echo "Test des zones $files."
else
echo "Pas de fichier de zone à tester"
fi
deploy-job: # This job runs in the deploy stage.