From 7cbcffeccfddeac638a186550df8d67839ae4d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com> Date: Thu, 21 Oct 2021 15:33:18 +0200 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5903b34..3c0aa68 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,7 +30,8 @@ deploy: script: - git add -f public - CHANGES=$(git status --porcelain | wc -l) - - if ["$CHANGES" -gt "0"]; then + # following command comes from https://dev.to/ranb2002/how-to-push-to-a-git-repository-from-a-gitlab-ci-pipeline-4ikp + - if [ "$CHANGES" -gt "0" ]; then git status; git commit -m "Update public from ${CI_COMMIT_SHORT_SHA}"; git push origin "master" -o ci.skip; -- GitLab