Skip to content

Commit

Permalink
fix: update version matching regex in release workflow to allow dots …
Browse files Browse the repository at this point in the history
…in version suffix
  • Loading branch information
thelastfantasy committed Nov 1, 2024
1 parent 0e5d900 commit 87070dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
echo -n "$branch_name" | xxd
# 测试正则表达式匹配
if echo "$branch_name" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9_-.]+)?$'; then
if echo "$branch_name" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9._-]+)?$'; then
version=$(echo "$branch_name" | grep -oE '^v[0-9]+\.[0-9]+\.[0-9]+')
echo "version=$version" >> "$GITHUB_OUTPUT"
echo "Matched version: $version"
Expand Down

0 comments on commit 87070dd

Please sign in to comment.