Skip to content

Commit 197f50b

Browse files
committed
REVERT: temporary hack to avoid checking tags
1 parent e65f53f commit 197f50b

1 file changed

Lines changed: 1 addition & 29 deletions

File tree

scripts/release.sh

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)