Skip to content

Commit 8db1656

Browse files
authored
ci: fix staging version string (#2582)
* ci: fix STAGING version competition * ci: replace slashes with dots in branch name for STAGING_VER * Apply suggestion from @wuhuizuo
1 parent e7bbbeb commit 8db1656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release-tiup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
run: |
6666
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
6767
if [ "$BRANCH_NAME" != "master" ]; then
68-
STAGING_VER=$(git describe --tags | sed 's/-[0-9]*-[^-]*$//')-$BRANCH_NAME
68+
STAGING_VER=$(git describe --tags | sed 's/-[0-9]*-[^-]*$//')-$(echo $BRANCH_NAME | sed 's|/|.|g')
6969
else
7070
STAGING_VER=$(git describe --tags | sed 's/-[^-]*$//' | sed -r 's/(-[^-]*$)/-nightly\1/')
7171
fi

0 commit comments

Comments
 (0)