Skip to content

Commit

Permalink
feat(version): start at 0
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilPatrice committed Jan 29, 2025
1 parent 9a60171 commit 1d2351f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ if [ -n "${RELEASE_TAG}" ]; then
tag_message="chore(version): new release"
else
BITRISE_OLD_TAG="$(git describe --tags --abbrev=0 )"
BITRISE_GIT_TAG=$(echo $BITRISE_OLD_TAG | sed -f $TAG_SED_RULES )$suffix
tag_message="chore(version): bump version"
if [ -n "$(git tag -l ${BITRISE_OLD_TAG}${suffix})" ]; then
BITRISE_GIT_TAG=$(echo $BITRISE_OLD_TAG | sed -f $TAG_SED_RULES )$suffix
tag_message="chore(version): bump version"
else
BITRISE_GIT_TAG="${BITRISE_OLD_TAG}${suffix}"
tag_message="chore(version): new release"
fi
fi

set +e
[[ "$BITRISE_GIT_TAG" =~ "-start" ]] ; changelog_enable=$?
set -e
Expand Down

0 comments on commit 1d2351f

Please sign in to comment.