This commit is contained in:
Kevin Davis 2019-10-15 16:00:40 -04:00
parent 8a5a3c2496
commit 107431a311

View File

@ -34,15 +34,15 @@ jobs:
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
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: