From 48a55c9ddb49f3a9469a56a993fa9302f79d845f Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Wed, 7 Jun 2017 22:58:38 +0100 Subject: [PATCH] stick to the old fashioned way for testing environment variables --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 05001dd84..e36cd5645 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -177,7 +177,7 @@ variables: .patch_version: &patch_version before_script: - - if [ -n ${CI_COMMIT_TAG+set} ]; then + - if [[ "x$CI_COMMIT_TAG" != "x" ]]; then echo "Release detected - patching version - $CI_COMMIT_REF_NAME"; python -c "import fsl.version as v; v.patchVersion('fsl/version.py', '$CI_COMMIT_REF_NAME')"; fi -- GitLab