Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit 7f47fc0

Browse files
committed
Do not fail when a parallel build already released [ci skip]
1 parent 716ce22 commit 7f47fc0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ci_cd/deploy.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,15 @@ travis_tag_checks() {
115115

116116
bump_setup_and_checks() {
117117
if grep -Po '(?<=## )([a-z0-9\.-]+)' CHANGELOG.md | grep "${NEXT_RELEASE}"; then
118-
die "NEXT_RELEASE='${NEXT_RELEASE}' is already present in CHANGELOG.md"
118+
echo "WARN: NEXT_RELEASE='${NEXT_RELEASE}' is already present in CHANGELOG.md"
119+
echo "WARN: Will abort the bump as it's happening probably in parallel with another one"
120+
exit 0
119121
fi
120122

121123
if hub release | grep "${NEXT_RELEASE}"; then
122-
die "NEXT_RELEASE='${NEXT_RELEASE}' has already being released according to: hub release"
124+
echo "WARN: NEXT_RELEASE='${NEXT_RELEASE}' has already being released according to: hub release"
125+
echo "WARN: Will abort the bump as it's happening probably in parallel with another one"
126+
exit 0
123127
fi
124128

125129
# Remove LATEST_RELEASE.md as we will overwrite it

0 commit comments

Comments
 (0)