From 1013354ba4d94abaeb31a83b42d3da643bce3e3f Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Sun, 14 Aug 2022 09:10:16 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 12d0183..e919f63 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,6 +24,7 @@ synchro-et-tests: - |+ files="" files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || find . -name "*.stl") + if [ -z "$CI_COMMIT_SHA" ]; then files=$(find . -name "*.stl"); fi echo -e "Test de : \n $files" - cd /home/webmaster/site-a-lec.org - |+ @@ -51,6 +52,7 @@ deploiement: # This job runs in the deploy stage. - |+ files="" files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || find . -name "*.stl") + if [ -z "$CI_COMMIT_SHA" ]; then files=$(find . -name "*.stl"); fi - cd /home/webmaster/site-a-lec.org - |+ errors=0