diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e4be191..64ca4d7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,7 +27,7 @@ synchro-et-tests: # Check how many changed echo "Fichiers commités : $(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)" files="" - if [ -z "$CI_COMMIT_SHA" ]; then + if [ ! -z "$CI_RELOAD" ]; then files=$(find . -name "*.stl" -printf %P) else files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || find . -name "*.stl" -printf "%P\n") @@ -63,7 +63,7 @@ deploiement: # This job runs in the deploy stage. # Check how many changed echo "Fichiers commités : $(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)" files="" - if [ -z "$CI_COMMIT_SHA" ] ; then + if [ ! -z "$CI_RELOAD" ]; then files=$(find . -name "*.stl" -printf %P) else files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || find . -name "*.stl" -printf "%P\n")