From 8a5a3c2496ec06a26057779df43ceb341b2689bc Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Tue, 15 Oct 2019 15:59:18 -0400 Subject: [PATCH] fix ci issue with tags --- .circleci/config.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 27679d6c..0051221f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,6 +33,16 @@ jobs: executor: golang steps: - checkout + - run: + name: Checkout with tags + command: | + git fetch --force origin "refs/tags/${CIRCLE_TAG}:refs/tags/${CIRCLE_TAG}" + if [ -n "$CIRCLE_BRANCH" ] + then + git reset --hard $CIRCLE_SHA1 + git checkout -q -B $CIRCLE_BRANCH + fi + git reset --hard $CIRCLE_SHA1 - restore_cache: name: "Restore go modules cache" keys: