Skip to content

Commit

Permalink
added release check
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Dec 22, 2023
1 parent 446ea21 commit dadb531
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .buildkite/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,16 @@ tag_Exists() {
fi
}

release_exists() {
local releases=$(retry 3 curl -s -u ${GITHUB_TOKEN_SECRET}:x-oauth-basic https://api.github.com/repos/elastic/${REPO}/releases)
echo ":: RELEASES ::"
echo $releases

if [[ $releases == *"${GOLANG_VERSION}"* ]]; then
echo ":: RELEASE EXISTS! ::"
fi
}

check_is_arm() {
if [[ ${HW_TYPE} == "aarch64" || ${HW_TYPE} == "arm64" ]]; then
is_arm="-arm"
Expand Down

0 comments on commit dadb531

Please sign in to comment.