From b34199aef37c657c68fb59502fa707d494abfd9d Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Fri, 12 Aug 2022 15:28:26 +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 bac35ed..a69d999 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,7 +21,7 @@ synchro-et-tests: stage: build script: - rsync -avzlh * /home/webmaster/site-chalec.org/articles/ - - files=(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA|grep stl) + - files=($(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA|grep stl)) - cd /home/webmaster/site-chalec.org/articles - |+ for file in $files @@ -38,7 +38,7 @@ deploiement: # This job runs in the deploy stage. stage: deploy # It only runs when *both* jobs in the test stage complete successfully. script: - cd /home/webmaster/site-chalec.org/articles - - files=(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA|grep stl) + - files=($(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA|grep stl)) - |+ for file in $files do