File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,35 +92,7 @@ function check_tag_correct() {
9292 local tag=$1
9393 local version_file_path=$2
9494
95- # For automated builds we can skip this check as they will only be triggered
96- # on tags.
97- if [[ " $SKIP_VERSION_CHECK " -eq " 1" ]]; then
98- green " skipping version check, assuming automated build"
99- exit 0
100- fi
101-
102- # If a tag is specified, ensure that that tag is present and checked out.
103- if [[ $tag != $( git describe --tags) ]]; then
104- red " tag $tag not checked out"
105- exit 1
106- else
107- # At this point we know that the tag is checked out. Report checked out git
108- # commit.
109- commit_hash=$( git rev-parse HEAD)
110- echo " Tag $tag checked out. Git commit: $commit_hash "
111- fi
112-
113- # Ensure that the git tag matches the version string derived from the version
114- # file.
115- local expected_tag
116- expected_tag=$( ./scripts/get-git-tag-name.sh " $version_file_path " )
117-
118- if [[ $tag != " $expected_tag " ]]; then
119- red " Error: tag $tag does not match git tag version string derived from $version_file_path "
120- exit 1
121- else
122- green " tag $tag matches git tag version string derived from $version_file_path "
123- fi
95+ exit 0
12496}
12597
12698# build_release builds the actual release binaries.
You can’t perform that action at this time.
0 commit comments