Skip to content

Commit

Permalink
Merge pull request #445 from untangle/MFW-6041-v2
Browse files Browse the repository at this point in the history
fixed syntax for near new tag version: bug
  • Loading branch information
vishal-malji authored Dec 19, 2024
2 parents 2ef49f3 + 2540c7a commit 6e0e7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e0e7e6

Please sign in to comment.