Skip to content

Commit 4118cb0

Browse files
committed
Also add Cargo.lock to version bump commit
1 parent be8fe81 commit 4118cb0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,19 @@ jobs:
6666
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
6767
echo "Release version: $NEW_VERSION"
6868
69-
- name: Update Cargo.toml
69+
- name: Update Cargo.toml and Cargo.lock
7070
run: |
71+
# Update version in Cargo.toml
7172
sed -i "s/^version = \"${{ steps.cargo_version.outputs.current_version }}\"/version = \"${{ steps.release_version.outputs.new_version }}\"/" Cargo.toml
7273
cat Cargo.toml | grep "^version = "
74+
75+
# Update Cargo.lock
76+
cargo update --package code-assistant
7377
7478
- name: Commit and push version update
7579
run: |
76-
git add Cargo.toml
80+
# Stage both Cargo.toml and Cargo.lock
81+
git add Cargo.toml Cargo.lock
7782
git commit -m "Bump version to ${{ steps.release_version.outputs.new_version }}"
7883
git push
7984

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)