Skip to content

Commit e4bb49b

Browse files
committed
init
1 parent bca8c89 commit e4bb49b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jobs:
142142
# 检查composer.json是否存在
143143
if [ -f "composer.json" ]; then
144144
# 读取当前版本号
145-
CURRENT_VERSION=$(grep -oP '(?<="version": "[0-9]+\.[0-9]+\.[0-9]+' composer.json)
145+
CURRENT_VERSION=$(grep -oP '(?<="version": ")[0-9]+\.[0-9]+\.[0-9]+' composer.json)
146146
147147
if [ -n "$CURRENT_VERSION" ]; then
148148
# 解析版本号

0 commit comments

Comments
 (0)