We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04f5f40 commit 30b3702Copy full SHA for 30b3702
1 file changed
.github/workflows/ci.yml
@@ -350,7 +350,7 @@ jobs:
350
echo "🔍 Analyzing commit message for version bump..."
351
352
# Get current version
353
- CURRENT_VERSION=$(grep -o 'VERSION = "[^"]*"' config.json | cut -d'"' -f2)
+ CURRENT_VERSION=$(grep -o '"VERSION": "[^"]*"' config.json | cut -d'"' -f4)
354
echo "Current version: $CURRENT_VERSION"
355
356
# Get commit message
@@ -375,7 +375,7 @@ jobs:
375
echo "✅ Version updated to $NEW_VERSION"
376
377
# Update version in config.json
378
- sed -i "s/VERSION = \"$CURRENT_VERSION\"/VERSION = \"$NEW_VERSION\"/" config.json
+ sed -i "s/\"VERSION\": \"$CURRENT_VERSION\"/\"VERSION\": \"$NEW_VERSION\"/" config.json
379
380
# Commit and push
381
git add config.json
0 commit comments