Skip to content

Commit f1d5bb1

Browse files
committed
feat: sync cargo lock
1 parent 5f7feb8 commit f1d5bb1

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/release-plz.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@ jobs:
2222
fetch-depth: 0
2323
- name: Install Rust toolchain
2424
uses: dtolnay/rust-toolchain@stable
25+
- name: Sync Cargo.lock
26+
run: cargo check
27+
- name: Commit Cargo.lock if changed
28+
run: |
29+
if git diff --quiet Cargo.lock; then
30+
echo "Cargo.lock is already up to date"
31+
else
32+
git config user.name "github-actions[bot]"
33+
git config user.email "github-actions[bot]@users.noreply.github.com"
34+
git add Cargo.lock
35+
git commit -m "chore: update Cargo.lock"
36+
git push
37+
fi
2538
- name: Run release-plz
2639
uses: release-plz/action@v0.5
2740
with:

0 commit comments

Comments
 (0)