Skip to content

Commit 6fc7f13

Browse files
committed
chore: lower branch name
1 parent 2c2380e commit 6fc7f13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ jobs:
5555
- name: Generate preview version
5656
if: github.event.inputs.version == 'next'
5757
run: |
58-
SAFE_BRANCH=$(echo "${{ github.ref_name }}" | sed 's/[^a-zA-Z0-9-]/-/g')
58+
# 清理分支名中的特殊字符并处理大小写
59+
SAFE_BRANCH=$(echo "${{ github.ref_name }}" | sed 's/[^a-zA-Z0-9-]/-/g' | tr '[:upper:]' '[:lower:]')
5960
npx changeset version --snapshot "$SAFE_BRANCH"
6061
6162
- name: Build and test Packages

0 commit comments

Comments
 (0)