We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bca8c89 commit e4bb49bCopy full SHA for e4bb49b
1 file changed
.github/workflows/release.yml
@@ -142,7 +142,7 @@ jobs:
142
# 检查composer.json是否存在
143
if [ -f "composer.json" ]; then
144
# 读取当前版本号
145
- CURRENT_VERSION=$(grep -oP '(?<="version": "[0-9]+\.[0-9]+\.[0-9]+' composer.json)
+ CURRENT_VERSION=$(grep -oP '(?<="version": ")[0-9]+\.[0-9]+\.[0-9]+' composer.json)
146
147
if [ -n "$CURRENT_VERSION" ]; then
148
# 解析版本号
0 commit comments