Update .gitlab-ci.yml file
This commit is contained in:
parent
15341c82c1
commit
9e197eaf1c
|
@ -27,7 +27,7 @@ synchro-et-tests:
|
||||||
# Check how many changed
|
# Check how many changed
|
||||||
echo "Fichiers commités : $(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)"
|
echo "Fichiers commités : $(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)"
|
||||||
files=""
|
files=""
|
||||||
if [ -z "$CI_COMMIT_SHA" ]; then
|
if [ ! -z "$CI_RELOAD" ]; then
|
||||||
files=$(find . -name "*.stl" -printf %P)
|
files=$(find . -name "*.stl" -printf %P)
|
||||||
else
|
else
|
||||||
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || find . -name "*.stl" -printf "%P\n")
|
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
|
# Check how many changed
|
||||||
echo "Fichiers commités : $(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)"
|
echo "Fichiers commités : $(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)"
|
||||||
files=""
|
files=""
|
||||||
if [ -z "$CI_COMMIT_SHA" ] ; then
|
if [ ! -z "$CI_RELOAD" ]; then
|
||||||
files=$(find . -name "*.stl" -printf %P)
|
files=$(find . -name "*.stl" -printf %P)
|
||||||
else
|
else
|
||||||
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || find . -name "*.stl" -printf "%P\n")
|
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || find . -name "*.stl" -printf "%P\n")
|
||||||
|
|
Loading…
Reference in New Issue