Update .gitlab-ci.yml file

This commit is contained in:
Adrien Bourmault 2022-10-17 17:34:07 +00:00
parent 15341c82c1
commit 9e197eaf1c
1 changed files with 2 additions and 2 deletions

View File

@ -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")