Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,25 @@ jobs:
git push origin HEAD:${{ fromJson(steps.release.outputs.pr).headBranchName }}
fi

# release-please bumps the workspace version in Cargo.toml (via the
# x-release-please-version annotation) but does not touch Cargo.lock, so
# the csp/csp-cli entries stay at the previous version and the release
# build's `cargo build --locked` fails. Refresh the member versions in the
# lockfile and commit it into the release PR. Mirrors the bun.lock sync.
- name: Sync Cargo.lock
if: ${{ steps.release.outputs.pr }}
run: |
cargo update -p csp -p csp-cli
if git diff --quiet Cargo.lock; then
echo "Cargo.lock already in sync"
else
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add Cargo.lock
git commit -m "chore: sync Cargo.lock"
git push origin HEAD:${{ fromJson(steps.release.outputs.pr).headBranchName }}
fi

# Build the Rust binaries (6 targets) and upload them to the release that
# release-please just created. Reuses release-rust.yml so the cross-compile
# matrix lives in one place (ADR-0003 cut-over — this replaces the former
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading