5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 09:30:28 +00:00

Merge pull request #270 from neilalexander/circleci

Don't fail if tag exists
This commit is contained in:
Arceliar 2018-12-18 18:47:57 -06:00 committed by GitHub
commit e65910806c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ jobs:
name: Create tags (master branch only)
command: >
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
echo "Only runs for master branch (this is ${CIRCLE_BRANCH})";
fi;