From 1f50abe13cd2c7b2f0528a8db9c4e24f93474bd3 Mon Sep 17 00:00:00 2001 From: semvervot Date: Mon, 18 Oct 2021 10:08:44 -0700 Subject: [PATCH] updated sbot config --- .gitlab-ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4bb115e..bc366b4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,10 +36,15 @@ version: - ssh-add <(echo "$SSH_PRIVATE_KEY") - curl -o sbot -L https://github.com/restechnica/semverbot/releases/download/v$SEMVERBOT_VERSION/sbot-linux-amd64 - chmod +x sbot - - ./sbot predict version -m git-commit - - export TAG=$(./sbot predict version) - - echo $TAG > version - git remote set-url origin git@gitlab.com:grassrootseconomics/cic-internal-integration.git + - export TAG=$(./sbot predict version -m auto) + - | + if [[ -z $TAG ]] + then + echo "tag could not be set $@" + exit 1 + fi + - echo $TAG > version - git tag -a v$TAG -m "ci tagged" - git push origin v$TAG artifacts: