Skip to content

Commit

Permalink
chore: replace the hard coded branch version (#687) (#693)
Browse files Browse the repository at this point in the history
Co-authored-by: Manuel Carrasco Moñino <[email protected]>

Co-authored-by: Zhe Sun <[email protected]>
Co-authored-by: Manuel Carrasco Moñino <[email protected]>
  • Loading branch information
3 people authored Mar 3, 2021
1 parent 08bb0a9 commit dba9f2e
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 @@ -48,9 +48,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 dba9f2e

Please sign in to comment.