Skip to content

Commit 5da903b

Browse files
committed
the workflow now updates the embeddings cargo toml
1 parent 5e02896 commit 5da903b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/update-toml-version.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ jobs:
3333
# Update the version in the simple Cargo.toml
3434
sed -i "s/^version = \".*\"/version = \"$NEXT_VERSION\"/g" simple/Cargo.toml
3535
sed -i "s/^\(llama-cpp-2 = { path = \"\.\.\/llama-cpp-2\", version = \)\"$CURRENT_VERSION\"/\1\"$NEXT_VERSION\"/" simple/Cargo.toml
36-
# Update the version in the root Cargo.toml
37-
sed -i "s/^version = \".*\"/version = \"$NEXT_VERSION\"/g" Cargo.toml
36+
# Update the version in the root embeddings Cargo.toml
37+
sed -i "s/^version = \".*\"/version = \"$NEXT_VERSION\"/g" embeddings/Cargo.toml
38+
sed -i "s/^\(llama-cpp-2 = { path = \"\.\.\/llama-cpp-2\", version = \)\"$CURRENT_VERSION\"/\1\"$NEXT_VERSION\"/" embeddings/Cargo.toml
3839
# Commit the changes
3940
git config --global user.email "[email protected]"
4041
git config --global user.name "GitHub Actions"

0 commit comments

Comments
 (0)