Skip to content

Commit

Permalink
ci: fix increasing version for old version schema branches (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo authored Oct 13, 2020
1 parent 0c6a4bf commit 9e91a36
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/prepareDeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ getLatest() {

getPlatformVersion() {
[ "$1" = vaadin-iron-list ] && name="iron-list" || name=$1

echo "$versions" | jq -r ".core, .vaadin | .[\"$name\"]| .javaVersion" | grep -v null
}

getNextVersion() {
[ -z "$1" ] && return
prefix=`echo $1 | perl -pe 's/[0-1]+$//'`
number=`echo $1 | perl -pe 's/.*([0-1]+)$/$1/'`
number=`expr $number + 1`
prefix=`echo $1 | perl -pe 's/[0-9]+$//'`
number=`echo $1 | perl -pe 's/.*([0-9]+)$/$1/'`
number=`expr $number + 1` || exit 1
echo $prefix$number
}

Expand Down Expand Up @@ -88,6 +89,7 @@ then
do
modVersion=`getPlatformVersion $i`
nextVersion=`getNextVersion $modVersion`
[ "$modVersion" = "$nextVersion" ] && echo Error Increasing version && exit 1
setPomVersion $i $nextVersion
done
fi
Expand Down

0 comments on commit 9e91a36

Please sign in to comment.