Skip to content

Commit 30b3702

Browse files
author
Omer Bulut
committed
fix: correct regex pattern for VERSION extraction from config.json
1 parent 04f5f40 commit 30b3702

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ jobs:
350350
echo "🔍 Analyzing commit message for version bump..."
351351
352352
# Get current version
353-
CURRENT_VERSION=$(grep -o 'VERSION = "[^"]*"' config.json | cut -d'"' -f2)
353+
CURRENT_VERSION=$(grep -o '"VERSION": "[^"]*"' config.json | cut -d'"' -f4)
354354
echo "Current version: $CURRENT_VERSION"
355355
356356
# Get commit message
@@ -375,7 +375,7 @@ jobs:
375375
echo "✅ Version updated to $NEW_VERSION"
376376
377377
# Update version in config.json
378-
sed -i "s/VERSION = \"$CURRENT_VERSION\"/VERSION = \"$NEW_VERSION\"/" config.json
378+
sed -i "s/\"VERSION\": \"$CURRENT_VERSION\"/\"VERSION\": \"$NEW_VERSION\"/" config.json
379379
380380
# Commit and push
381381
git add config.json

0 commit comments

Comments
 (0)