diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ee4cfb1..b97dc55 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,9 +49,9 @@ release: when: never # Do not run this job when a tag is created manually - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch script: - - echo "running release for v1-$CI_COMMIT_TAG" + - echo "running release for v1-$CI_COMMIT_SHORT_SHA" release: - name: 'Release v1-$CI_COMMIT_TAG' + name: 'Release v1-$CI_COMMIT_SHORT_SHA' description: 'Created using the release-cli $EXTRA_DESCRIPTION' # $EXTRA_DESCRIPTION and the $TAG - tag_name: 'v1-$CI_COMMIT_TAG' # variables must be defined elsewhere + tag_name: 'v1-$CI_COMMIT_SHORT_SHA' # variables must be defined elsewhere ref: '$CI_COMMIT_SHA' # in the pipeline. For example, in the \ No newline at end of file