From c7194ade0d7f891b5fec1260e31b751b3ecd9e84 Mon Sep 17 00:00:00 2001 From: Benjamin Reed Date: Tue, 27 Jun 2023 10:13:45 -0400 Subject: [PATCH] clean up how branch tags are made to be dependabot-compatible --- .circleci/config.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3f1115a0..8aa276c1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -68,8 +68,9 @@ jobs: - run: name: Generate version number for this build command: | - BRANCH_TAG=$(echo ${CIRCLE_BRANCH/release-/} | tr '[:upper:]' '[:lower:]') - echo "export VERSION=${BRANCH_TAG/\//-}-b${CIRCLE_BUILD_NUM}" >> ${BASH_ENV} + BRANCH_TAG="$(echo "${CIRCLE_BRANCH/release-/}" | tr '[:upper:]' '[:lower:]')" + VERSION="$(echo "${BRANCH_TAG}" | sed -e 's,/,-,g')-b${CIRCLE_BUILD_NUM}" + echo "export VERSION=${VERSION}" >> ${BASH_ENV} - run: name: Compile and run tests command: |