Update .gitlab-ci.yml file

This commit is contained in:
Adrien Bourmault 2022-08-14 10:50:09 +00:00
parent f896d35d7c
commit 8ca7fb93cc
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ synchro-et-tests:
rsync -avzlh * /home/webmaster/site-a-lec.org/articles/
- |+
# Check how many changed
echo "Fichiers commités : $(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)"
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
@ -55,6 +56,7 @@ deploiement: # This job runs in the deploy stage.
script:
- |+
# Check how many files to be builded
echo "Fichiers commités : $(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)"
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