-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathquarkus-update
executable file
·29 lines (23 loc) · 1016 Bytes
/
quarkus-update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
set -x
branchName=$1
currentVersion=$2
newVersion=$3
newMajorMinor=$4
platform=$5
repository=$6
echo $
if [[ "$branchName" =~ renovate/.*quarkus.platform.version ]]; then
echo "Branch: $branchName; Old version: $oldVersion; New MajorMinorVersion: $newMajorMinor"
/tmp/renovate/repos/$platform/$repository/mvnw versions:set-property -Dproperty=quarkus.platform.version -DnewVersion=$currentVersion -f /tmp/renovate/repos/$platform/$repository/pom.xml
/tmp/renovate/repos/$platform/$repository/mvnw -f /tmp/renovate/repos/$platform/$repository/pom.xml io.quarkus.platform:quarkus-maven-plugin:$newVersion:update
fi
if [[ "$branchName" =~ renovate/angular* ]]; then
echo "Branch: $branchName; Old version: $oldVersion; New MajorMinorVersion: $newMajorMinor"
currentVersion=$oldVersion
npm install
while [ $currentVersion -lt $newVersion ] ; do
currentVersion=`expr $currentVersion + 1`
ng update @angular/core@$currentVersion @angular/cli@$currentVersion --allow-dirty
done
fi