Skip to content

Commit

Permalink
Merge pull request #379 from instana/instrumentations_release_fix
Browse files Browse the repository at this point in the history
Replaced unnecessary "@" by "/" when releasing a tag
  • Loading branch information
willianpc authored Dec 19, 2022
2 parents 60294e1 + 7fd2122 commit 5d7ce68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions instrumentations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ run_release() {
VERSION="0.0.0"
fi

MINOR_VERSION=$(echo $VERSION | sed -En 's/[0-9]+\.([0-9]+)\.[0-9]+/\1/p')
MAJOR_VERSION=$(echo $VERSION | sed -En 's/([0-9]+)\.[0-9]+\.[0-9]+/\1/p')
MINOR_VERSION=$(echo "$VERSION" | sed -En 's/[0-9]+\.([0-9]+)\.[0-9]+/\1/p')
MAJOR_VERSION=$(echo "$VERSION" | sed -En 's/([0-9]+)\.[0-9]+\.[0-9]+/\1/p')
MINOR_VERSION=$((MINOR_VERSION+1))
NEW_VERSION="$MAJOR_VERSION.$MINOR_VERSION.0"

# Updates the minor version in version.go
sed -i '' -E "s/[0-9]+\.[0-9]+\.[0-9]+/${NEW_VERSION}/" "$lib"/version.go | tail -1

# Tags to be created after version.go is merged to the master branch with the new version
TAGS="$TAGS $LIB_PATH@v$MAJOR_VERSION.$MINOR_VERSION.0"
TAGS="$TAGS $LIB_PATH/v$MAJOR_VERSION.$MINOR_VERSION.0"
done

# Commit all version.go files to the master branch
Expand Down

0 comments on commit 5d7ce68

Please sign in to comment.