From 2540c7ab8cdafaff10eff220a0c38b300cf546b8 Mon Sep 17 00:00:00 2001 From: vishal malji Date: Thu, 19 Dec 2024 15:56:35 +0530 Subject: [PATCH] fixed syntax for near new tag --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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