Skip to content

Commit fb9530f

Browse files
committed
JDCMT-168 get tag from branch name
1 parent 706904c commit fb9530f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitbucket-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ definitions:
8686
- step: &createTag
8787
name: Create tag
8888
script:
89-
- TAG_NAME=$(date +%Y.%m.%d)
89+
- TAG_NAME=$(echo "$BITBUCKET_BRANCH" | sed 's/release\///')
9090
- echo "Creating new tag ${TAG_NAME}"
9191
- git tag -am "Tag ${TAG_NAME}" $TAG_NAME
9292
- git push origin $TAG_NAME

0 commit comments

Comments
 (0)