Skip to content

Commit 0142f0c

Browse files
author
Adrian Cole
committed
Fixes release pattern
A recent change to the ./mvnw script changed output slightly and broke the logic which detected versions. This fixes it.
1 parent 8c54e3a commit 0142f0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

travis/publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ check_release_tag() {
6060
}
6161

6262
is_release_commit() {
63-
project_version=$(./mvnw help:evaluate -N -Dexpression=project.version|grep -v '\[')
63+
project_version=$(./mvnw help:evaluate -N -Dexpression=project.version|sed -n '/^[0-9]/p')
6464
if [[ "$project_version" =~ ^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$ ]]; then
6565
echo "Build started by release commit $project_version. Will synchronize to maven central."
6666
return 0

0 commit comments

Comments
 (0)