From 2220690feab16517e91426ce6bb7b36c1f8d80d7 Mon Sep 17 00:00:00 2001 From: Antonio Aloisio Date: Mon, 1 Apr 2019 20:59:53 +0300 Subject: [PATCH] Remove serialno from tag if any --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8eb0ebd261a..543fde548b9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,7 +18,9 @@ jobs: if [ -z "${CIRCLE_TAG}" ]; then echo "Nothing to do. Not a release" else - sed -i "s/EXTENDNO=.*/EXTENDNO=${CIRCLE_TAG}/g" release/src-rt/version.conf + # When you tag as 340.10-extension it extract extension + CIRCLE_TAG_EXT="$(echo ${CIRCLE_TAG} | sed -e "s/[0-9]\\+\\.[0-9]\\+\\-//g)" + sed -i "s/EXTENDNO=.*/EXTENDNO=${CIRCLE_TAG_EXT}/g" release/src-rt/version.conf fi - run: name: Setup toolchain