From af39d6928842b5c87d82af77c9ece2c978006487 Mon Sep 17 00:00:00 2001 From: Matti Picus Date: Fri, 22 Oct 2021 00:56:07 +0300 Subject: [PATCH] fix formatting CIRCLECI_TAG when building docs (#1418) --- .circleci/config.yml | 3 ++- .circleci/config.yml.in | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bc3f09d043..56ce646702 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -586,7 +586,8 @@ jobs: # Don't use "checkout" step since it uses ssh, which cannot git push # https://circleci.com/docs/2.0/configuration-reference/#checkout set -ex - tag=${CIRCLE_TAG:1:5} + # turn v1.12.0rc3 into 1.12.0 + tag=$(echo $CIRCLE_TAG | sed -e 's/v*\([0-9.]*\).*/\1/') target=${tag:-main} ~/workspace/.circleci/build_docs/commit_docs.sh ~/workspace $target diff --git a/.circleci/config.yml.in b/.circleci/config.yml.in index 911295217b..3055fdc3c4 100644 --- a/.circleci/config.yml.in +++ b/.circleci/config.yml.in @@ -586,7 +586,8 @@ jobs: # Don't use "checkout" step since it uses ssh, which cannot git push # https://circleci.com/docs/2.0/configuration-reference/#checkout set -ex - tag=${CIRCLE_TAG:1:5} + # turn v1.12.0rc3 into 1.12.0 + tag=$(echo $CIRCLE_TAG | sed -e 's/v*\([0-9.]*\).*/\1/') target=${tag:-main} ~/workspace/.circleci/build_docs/commit_docs.sh ~/workspace $target