Skip to content

Commit

Permalink
chore: replace the hard coded branch version (#687) (#692)
Browse files Browse the repository at this point in the history
Co-authored-by: Manuel Carrasco Moñino <manolo@vaadin.com>

Co-authored-by: Zhe Sun <31067185+ZheSun88@users.noreply.github.com>
Co-authored-by: Manuel Carrasco Moñino <manolo@vaadin.com>
  • Loading branch information
3 people committed Mar 3, 2021
1 parent 2d2f803 commit f20f922
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/prepareDeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ pomVersion=`cat pom.xml | grep '<version>' | head -1 | cut -d '>' -f2 | cut -d '
versionBase=`getBaseVersion $version`
pomBase=`getBaseVersion $pomVersion`

### Get the master branch version for components
masterPom=`curl -s "https://raw.githubusercontent.com/vaadin/vaadin-flow-components/master/pom.xml"`
masterMajorMinor=`echo "$masterPom" | grep '<version>' | cut -d '>' -f2 |cut -d '<' -f1 | grep "^$base" | head -1 | cut -d '-' -f1`

### Load versions file for this platform release
branch=$versionBase
[ $branch = "20.0" ] && branch=master
[ $branch = $masterMajorMinor ] && branch=master
versions=`curl -s "https://raw.githubusercontent.com/vaadin/platform/$branch/versions.json"`
[ $? != 0 ] && branch=master && versions=`curl -s "https://raw.githubusercontent.com/vaadin/platform/$branch/versions.json"`

Expand Down

0 comments on commit f20f922

Please sign in to comment.