Skip to content

Commit dadb531

Browse files
committed
added release check
1 parent 446ea21 commit dadb531

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.buildkite/scripts/common.sh

+10
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,16 @@ tag_Exists() {
139139
fi
140140
}
141141

142+
release_exists() {
143+
local releases=$(retry 3 curl -s -u ${GITHUB_TOKEN_SECRET}:x-oauth-basic https://api.github.com/repos/elastic/${REPO}/releases)
144+
echo ":: RELEASES ::"
145+
echo $releases
146+
147+
if [[ $releases == *"${GOLANG_VERSION}"* ]]; then
148+
echo ":: RELEASE EXISTS! ::"
149+
fi
150+
}
151+
142152
check_is_arm() {
143153
if [[ ${HW_TYPE} == "aarch64" || ${HW_TYPE} == "arm64" ]]; then
144154
is_arm="-arm"

0 commit comments

Comments
 (0)