-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# Define the root directory as the current directory | ||
root_dir=$(pwd) | ||
|
||
# Read the version from the keyboard | ||
read -p "Enter docs version (e.g 1.0.0): " version | ||
|
||
# Find and update the version in .md files | ||
find "$root_dir" -type f -name "*.md" -exec sed -i '' "s/implementation(\"com\.composables:core:[^\"]*\")/implementation(\"com.composables:core:$version\")/g" {} + | ||
|
||
# Read the version from the keyboard | ||
read -p "Enter WIP version (e.g., 1.8.0): " version | ||
|
||
# Update the publishVersion value in build.gradle.kts | ||
sed -i '' "s/^val publishVersion = \".*\"/val publishVersion = \"$version\"/" "$root_dir/core/build.gradle.kts" | ||
|
||
# Add all changes to git | ||
git add . | ||
|
||
# Commit with the provided version in the message | ||
git commit -m "Prepare version $version" | ||
|
||
echo "👍 Updated all files and created a git commit" |