Skip to content

Commit

Permalink
feat(version): snapshot mode
Browse files Browse the repository at this point in the history
use the new release start tag (-SNAPSHOT pattern)
  • Loading branch information
CyrilPatrice committed Sep 23, 2016
1 parent 65f3d21 commit 1187587
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
6 changes: 1 addition & 5 deletions step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ if [ -n "${RELEASE_TAG}" ]; then
BITRISE_GIT_BRANCH="feat/create_${BITRISE_GIT_TAG}"

else
BITRISE_GIT_TAG=$(echo $(git describe --tags --abbrev=0 ) | sed "s/v[0-9\.]*\.[0-9]*[0-9]/&@/g
:a
{s/0@/1/g;s/1@/2/g;s/2@/3/g;s/3@/4/g;s/4@/5/g;s/5@/6/g;s/6@/7/g;s/7@/8/g;s/8@/9/g;s/9@/@0/g;t a
}
s/@/1/g")
BITRISE_GIT_TAG=$(echo $(git describe --tags --abbrev=0 ) | sed -f tag.sed)
tag_message="chore(version): bump version"
BITRISE_GIT_BRANCH="feat/bump_${BITRISE_GIT_TAG}"

Expand Down
17 changes: 17 additions & 0 deletions tag.sed
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
s/v[0-9\.]*\.[0-9]*[0-9]/&@/g
:a
{
s/0@/1/g
s/1@/2/g
s/2@/3/g
s/3@/4/g
s/4@/5/g
s/5@/6/g
s/6@/7/g
s/7@/8/g
s/8@/9/g
s/9@/@0/g
t a
}
s/@/1/g
s/-.*$//

0 comments on commit 1187587

Please sign in to comment.