Skip to content

Commit faffac5

Browse files
committed
the workflow now updates the Cargo lock
1 parent e15006e commit faffac5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ jobs:
3636
# Update the version in the root embeddings Cargo.toml
3737
sed -i "s/^version = \".*\"/version = \"$NEXT_VERSION\"/g" embeddings/Cargo.toml
3838
sed -i "s/^\(llama-cpp-2 = { path = \"\.\.\/llama-cpp-2\", version = \)\"$CURRENT_VERSION\"/\1\"$NEXT_VERSION\"/" embeddings/Cargo.toml
39+
# Update Cargo.lock by running cargo check
40+
cargo check
3941
# Commit the changes
4042
git config --global user.email "[email protected]"
4143
git config --global user.name "GitHub Actions"
42-
git add llama-cpp-sys-2/Cargo.toml llama-cpp-2/Cargo.toml simple/Cargo.toml embeddings/Cargo.toml
44+
git add llama-cpp-sys-2/Cargo.toml llama-cpp-2/Cargo.toml simple/Cargo.toml embeddings/Cargo.toml Cargo.lock
4345
git commit -m "Bump version to $NEXT_VERSION [skip ci]"
4446
# Create a branch for the changes
4547
git checkout -b version-bump-$NEXT_VERSION

0 commit comments

Comments
 (0)