5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 10:40:27 +00:00

Don't fail if tag exists

This commit is contained in:
Neil Alexander 2018-12-19 00:15:12 +00:00
parent b2fcf130b9
commit 3283de17d5
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -103,7 +103,7 @@ jobs:
name: Create tags (master branch only) name: Create tags (master branch only)
command: > command: >
if [ "${CIRCLE_BRANCH}" == "master" ]; then if [ "${CIRCLE_BRANCH}" == "master" ]; then
git tag -a $(sh contrib/semver/version.sh) -m "Created by CircleCI" && git push --tags; (git tag -a $(sh contrib/semver/version.sh) -m "Created by CircleCI" && git push --tags) || true;
else else
echo "Only runs for master branch (this is ${CIRCLE_BRANCH})"; echo "Only runs for master branch (this is ${CIRCLE_BRANCH})";
fi; fi;