Skip to content

Commit 6b4be81

Browse files
authored
bk: post-release should not fail (#355)
1 parent 1255004 commit 6b4be81

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.buildkite/scripts/post-release.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ git_push_with_auth() {
2323
}
2424

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

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

0 commit comments

Comments
 (0)