Compare commits

...

1 Commits

Author SHA1 Message Date
01eedd7f71 Fix CI action for checking if Cargo.lock is stale
It was falsely passing GH Action CI even when it shouldn't have.
2024-07-13 15:12:36 -05:00
2 changed files with 9 additions and 2 deletions

View File

@ -63,5 +63,4 @@ jobs:
# If this fails, run "cargo check" to update Cargo.lock,
# then add Cargo.lock to the PR.
- name: Check Cargo.lock doesn't need updating
run: |
cargo check --locked || echo "Pls run cargo check and commit the changed Cargo.lock"
run: "./scripts/check-tauri-lockfile.sh"

View File

@ -0,0 +1,8 @@
DIR=src-tauri
cd $DIR
if cargo check --locked ; then
echo "Seems $DIR/Cargo.lock is up to date."
else
echo "Pls run cargo check and commit the changed $DIR/Cargo.lock, because it's out of date."
fi
cd -