diff --git a/.travis.yml b/.travis.yml index be094361..3f9d7659 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,7 +40,7 @@ jobs: - git config --local user.name "Travis CI" - git config --local user.email "travis@travis-ci.org" - export TRAVIS_TAG=$(python3 version.py --fetch --branch $TRAVIS_BRANCH <<< "$TRAVIS_COMMIT_MESSAGE") - - if [ -n "$TRAVIS_TAG" ] && [ ! $(git tag -l "$TRAVIS_TAG") ]; then git tag $TRAVIS_TAG; else echo "Uh-oh, tag $TRAVIS_TAG already exists!"; VERSION=$(echo $TRAVIS_TAG | sed 's/^v//'); NEW_VERSION=$(echo $VERSION | awk -F. '{printf "%d.%d.%d", $1, $2, $3+1}') ; TRAVIS_TAG="v$NEW_VERSION" ; echo "New tag: $TRAVIS_TAG" ; git tag $TRAVIS_TAG ;fi + - if [ -n "$TRAVIS_TAG" ] && [ ! $(git tag -l "$TRAVIS_TAG") ]; then git tag $TRAVIS_TAG; else echo "Uh-oh, tag $TRAVIS_TAG already exists!"; VERSION=$(echo $TRAVIS_TAG | sed 's/^v//'); NEW_VERSION=$(echo $VERSION | awk -F. '{printf "%d.%d.%d", $1, $2, $3+1}') ; TRAVIS_TAG="v$NEW_VERSION" ; echo "New tag $TRAVIS_TAG" ; git tag $TRAVIS_TAG ;fi - RELEASE_NOTES=${TRAVIS_COMMIT_MESSAGE//$'\n'/ } # This needs to be here, otherwise travis will try to take some