From 9e197eaf1c81c5b4f63c2149ab88d22aa524e3b3 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Mon, 17 Oct 2022 17:34:07 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")