-
Notifications
You must be signed in to change notification settings - Fork 4
/
raise.sh
executable file
·60 lines (49 loc) · 1.33 KB
/
raise.sh
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
set -e
#
# Param 1: Version (required)
# e.g.: 9.2.0-SNAPSHOT
#
# Param 2: Source Branch (required)
# e.g.: master or release/8.0
#
# Param 3: Token File for auth of gh cli (required)
# e.g.: ~/.gh-token-file
#
if [ $# -eq 0 ]; then
echo "Parameter version required"
exit
fi
if [ $# -eq 1 ]; then
echo "Parameter source branch required"
exit
fi
newVersion=$1
echo "raise version to ${newVersion}"
sourceBranch=$2
echo "source branch to checkout repos $2"
uuid=$(date +%s%N)
newBranch=raise-version-${newVersion}-${uuid}
commitMessage="Raise dependencies version to ${newVersion}"
# switch to directory of this script
cd "$(dirname "$0")"
source "../raiseRepo.sh"
function raiseDepsOfOurRepos {
repos=(
"[email protected]:axonivy/core.git"
"[email protected]:axonivy/rules.git"
"[email protected]:axonivy/webeditor.git"
"[email protected]:axonivy/process-editor-core.git"
"[email protected]:axonivy/vscode-extensions.git"
"[email protected]:axonivy/process-editor-client.git"
"[email protected]:axonivy/form-editor-client.git"
"[email protected]:axonivy/config-editor-client.git"
"[email protected]:axonivy/neo.git"
"[email protected]:axonivy/dataclass-editor-client.git"
)
runRepoUpdate 'updateSingleRepo' ${repos[@]}
}
function updateSingleRepo {
.ivy/raise-deps.sh ${newVersion}
}
raiseDepsOfOurRepos