Skip to content

Commit

Permalink
bk: post-release should not fail (elastic#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Nov 29, 2023
1 parent 1255004 commit 6b4be81
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .buildkite/scripts/post-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ git_push_with_auth() {
}

if [[ "${TAG_EXISTS}" == true ]]; then
echo "Tag already exists! Exiting Post-release stage."
exit 1
message="Tag '$TAG' already exists! Exiting Post-release stage."
echo "$message"
buildkite-agent annotate "$message" --style 'warning' --context 'ctx-warn'
# This should return any error but skip the release.
exit 0
fi

set_git_config
tag_commit
git_push_with_auth
buildkite-agent annotate "Tag '$TAG' has been created." --style 'success' --context 'ctx-success'

0 comments on commit 6b4be81

Please sign in to comment.