Skip to content

Commit 31dbb75

Browse files
authored
fix formatting CIRCLECI_TAG when building docs (#1915)
1 parent ec4837d commit 31dbb75

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/config.yml.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,8 @@ jobs:
651651
# Don't use "checkout" step since it uses ssh, which cannot git push
652652
# https://circleci.com/docs/2.0/configuration-reference/#checkout
653653
set -ex
654-
tag=${CIRCLE_TAG:1:5}
654+
# turn v1.12.0rc3 into 1.12.0
655+
tag=$(echo $CIRCLE_TAG | sed -e 's/v*\([0-9.]*\).*/\1/')
655656
target=${tag:-main}
656657
~/workspace/.circleci/build_docs/commit_docs.sh ~/workspace $target
657658

0 commit comments

Comments
 (0)