Skip to content

Commit 1fb3fc7

Browse files
committed
trying a fix for the updates not working for the new crates
1 parent 81a61f8 commit 1fb3fc7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ jobs:
2929
sed -i "s/^version = \".*\"/version = \"$NEXT_VERSION\"/g" llama-cpp-sys-2/Cargo.toml
3030
# Update version in llama-cpp-2 Cargo.toml
3131
sed -i "s/^version = \".*\"/version = \"$NEXT_VERSION\"/g" llama-cpp-2/Cargo.toml
32-
sed -i "s/^\(llama-cpp-sys-2 = { path = \"\.\.\/llama-cpp-sys-2\", version = \)\"$CURRENT_VERSION\"/\1\"$NEXT_VERSION\"/" llama-cpp-2/Cargo.toml
33-
sed -i "s/^\(llama-cpp-2 = { path = \"\.\.\/llama-cpp-2\", version = \)\"$CURRENT_VERSION\"/\1\"$NEXT_VERSION\"/" simple/Cargo.toml
34-
sed -i "s/^\(llama-cpp-2 = { version = \)\"$CURRENT_VERSION\"/\1\"$NEXT_VERSION\"/" Cargo.toml
32+
sed -i "s/^\(llama-cpp-sys-2 = { path = \"\.\.\/llama-cpp-sys-2\", version = \)\"$CURRENT_VERSION\"/\1\"$NEXT_VERSION\"/" llama-cpp-2/Cargo.toml
33+
# Update the version in the simple Cargo.toml
34+
sed -i "s/^version = \".*\"/version = \"$NEXT_VERSION\"/g" simple/Cargo.toml
35+
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
3538
# Commit the changes
3639
git config --global user.email "[email protected]"
3740
git config --global user.name "GitHub Actions"

0 commit comments

Comments
 (0)