From 0fe40324653caa71bfc98f5a4d6dccb124201078 Mon Sep 17 00:00:00 2001 From: vishal malji Date: Thu, 19 Dec 2024 16:26:10 +0530 Subject: [PATCH 1/2] Added hardcoded version tag --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3f9d7659..77d2957d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,7 +39,7 @@ jobs: - gem install logger - 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") + - export TRAVIS_TAG=v1.64.13 - 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'/ } From c5982b305bd2822f6773e8e97e4d25d7224dd9f6 Mon Sep 17 00:00:00 2001 From: vishal malji Date: Thu, 19 Dec 2024 16:28:49 +0530 Subject: [PATCH 2/2] reverted the tag comparison --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 77d2957d..d8227813 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=v1.64.13 - - 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!"; fi - RELEASE_NOTES=${TRAVIS_COMMIT_MESSAGE//$'\n'/ } # This needs to be here, otherwise travis will try to take some