File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 17
17
18
18
trigger_tag=${1?trigger_tag is required. Ex release-1.2.3}
19
19
release_version=$( build-bin/git/version_from_trigger_tag release- ${trigger_tag} )
20
+ latest_app_version=${2?latest_app_version is required. Ex 4.5.6}
20
21
release_branch=${3:- master}
21
22
22
23
# Checkout master, as we release from master, not a tag ref
@@ -32,14 +33,15 @@ if [ "$commit_local_release_branch" != "$commit_remote_release_branch" ]; then
32
33
fi
33
34
34
35
# Update appVersion
35
- latest_app_version=${2?latest_app_version is required. Ex 4.5.6}
36
36
sh -c " sed -i 's/appVersion\:\s[0-9.]\+/appVersion\: ${latest_app_version} /g' ./charts/zipkin/Chart.yaml"
37
37
38
38
# Update version
39
39
sh -c " sed -i 's/version\:\s[0-9.]\+/version\: ${release_version} /g' ./charts/zipkin/Chart.yaml"
40
40
41
41
# Commit changes to ./charts/zipkin/Chart.yaml
42
- git add ./charts/zipkin/Chart.yaml && git commit -m " chore: prepare chart release ${release_version} "
42
+ git add ./charts/zipkin/Chart.yaml
43
43
44
- # Push the changes in ./charts/zipkin/Chart.yaml to the release branch
45
- git push origin ${release_branch}
44
+ if git commit -m " release: updates for ${release_version} " ; then
45
+ # Push the changes in ./charts/zipkin/Chart.yaml to the release branch
46
+ git push origin ${release_branch}
47
+ fi
You can’t perform that action at this time.
0 commit comments