From 9a7984bf61362e0572c59ca0aa89246f6096e860 Mon Sep 17 00:00:00 2001 From: Tetiana Chupryna Date: Tue, 12 Feb 2019 15:34:18 +0200 Subject: Use right variable to grep changelog --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 10cc586..00f7beb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -124,8 +124,8 @@ version: extends: .docker_tag before_script: - export IMAGE_TAG=${CI_COMMIT_TAG/v/} - - echo "Checking that $IMAGE_TAG is last in the changelog" - - test "$(grep '^## v' CHANGELOG.md |head -n 1)" = "## $IMAGE_TAG" + - echo "Checking that $CI_COMMIT_TAG is last in the changelog" + - test "$(grep '^## v' CHANGELOG.md |head -n 1)" = "## $CI_COMMIT_TAG" only: - tags when: manual -- cgit v1.2.3