From 5b4ef2eeb76e9723e881147c4026dbfccb0e3f0a Mon Sep 17 00:00:00 2001 From: Yan Liu Date: Sun, 26 Jan 2025 17:14:36 +0100 Subject: [PATCH] chore: Also update Cargo.lock when updating version in Cargo.toml --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 90e3bcc..18abe7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -112,6 +112,7 @@ jobs: for toml in $(find . -name "Cargo.toml"); do sed -i "s/^version = \".*\"/version = \"$VERSION\"/" "$toml" done + cargo check - name: Create Pull Request uses: peter-evans/create-pull-request@v5 @@ -122,7 +123,7 @@ jobs: commit-message: "chore: bump version to ${{ needs.create-release.outputs.version }}" title: "chore: bump version to ${{ needs.create-release.outputs.version }}" body: | - Updates version in Cargo.toml files to match the latest release. + Updates version in Cargo.toml+lock files to match the latest release. This PR was automatically created by the release workflow. branch: bump-version-${{ needs.create-release.outputs.version }}