forked from axonivy/github-repo-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
raise.sh
executable file
·72 lines (60 loc) · 1.76 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
61
62
63
64
65
66
67
68
69
70
71
72
#!/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
#
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"
autoMerge=0
if [ "$DRY_RUN" = false ]; then
autoMerge=1
fi
echo "autoMerge ${autoMerge}"
uuid=$(date +%s%N)
newBranch=raise-version-${newVersion}-${uuid}
commitMessage="Raise version to ${newVersion}"
# switch to directory of this script
cd "$(dirname "$0")"
source "../raiseRepo.sh"
function raiseVersionOfOurRepos {
repos=(
"[email protected]:axonivy-market/demo-projects.git"
"[email protected]:axonivy/doc-images.git"
"[email protected]:axonivy/case-map-ui.git"
"[email protected]:axonivy/config-editor-client.git"
"[email protected]:axonivy/primefaces-themes.git"
"[email protected]:axonivy/engine-cockpit.git"
"[email protected]:axonivy/dev-workflow-ui.git"
"[email protected]:axonivy/webeditor.git"
"[email protected]:axonivy/rules.git"
"[email protected]:axonivy/process-editor-client.git"
"[email protected]:axonivy/process-editor-core.git"
"[email protected]:axonivy/form-editor-client.git"
"[email protected]:axonivy/ui-components.git"
"[email protected]:axonivy/neo.git"
"[email protected]:axonivy/dataclass-editor-client.git"
"[email protected]:axonivy/monaco-yaml-ivy.git"
"[email protected]:axonivy/swagger-ui-ivy.git"
"[email protected]:axonivy/core.git"
"[email protected]:axonivy/vscode-extensions.git"
)
runRepoUpdate 'updateSingleRepo' ${repos[@]}
}
function updateSingleRepo {
.ivy/raise-version.sh ${newVersion}
}
raiseVersionOfOurRepos