fix: check lock and not nix

This commit is contained in:
trev 2025-05-12 12:26:12 -04:00
parent 20726c55d5
commit e6ab5700de

View File

@ -6,8 +6,7 @@ updated=false
echo "updating nix flake" echo "updating nix flake"
cd "${git_root}" cd "${git_root}"
nix flake update nix flake update
if ! git diff --exit-code flake.nix; then if ! git diff --exit-code flake.lock; then
git add flake.nix
git add flake.lock git add flake.lock
git commit -m "build(nix): updated nix dependencies" git commit -m "build(nix): updated nix dependencies"
fi fi
@ -29,7 +28,7 @@ go mod tidy
if ! git diff --exit-code go.mod go.sum; then if ! git diff --exit-code go.mod go.sum; then
git add go.mod git add go.mod
git add go.sum git add go.sum
git commit -m "build(go): updated go dependencies" git commit -m "build(server): updated go dependencies"
updated=true updated=true
fi fi