Skip to content

Commit

Permalink
fix(ci): explicitly add git tag locally
Browse files Browse the repository at this point in the history
  • Loading branch information
devfreddy committed Nov 6, 2019
1 parent 0d758f2 commit 408e948
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,12 @@ jobs:
# https://discuss.circleci.com/t/checkout-fails-on-git-tags-when-git-directory-is-already-present/22437/6
# https://stackoverflow.com/questions/45338495/fetch-a-single-tag-from-remote-repository/45338695#45338695
- run:
name: Checkout with tags
name: Create local tag
command: |
git fetch --force origin "refs/tags/${CIRCLE_TAG}:refs/tags/${CIRCLE_TAG}"
if [ -n "$CIRCLE_TAG" ]
then
git fetch --force origin "refs/tags/${CIRCLE_TAG}:refs/tags/${CIRCLE_TAG}"
fi
- command-install
- command-install-nr1-cli
Expand Down

0 comments on commit 408e948

Please sign in to comment.