feat: update nix flake
This commit is contained in:
parent
071b719309
commit
0093a0879e
@ -3,6 +3,14 @@
|
|||||||
git_root=$(git rev-parse --show-toplevel)
|
git_root=$(git rev-parse --show-toplevel)
|
||||||
updated=false
|
updated=false
|
||||||
|
|
||||||
|
echo "updating nix flake"
|
||||||
|
cd "${git_root}"
|
||||||
|
nix flake update
|
||||||
|
if ! git diff --exit-code flake.nix; then
|
||||||
|
git add flake.nix
|
||||||
|
git commit -m "build(nix): updated nix dependencies"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "updating client"
|
echo "updating client"
|
||||||
cd "${git_root}/client"
|
cd "${git_root}/client"
|
||||||
npm update --save && npm i
|
npm update --save && npm i
|
||||||
@ -25,7 +33,7 @@ if ! git diff --exit-code go.mod go.sum; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${updated}" = true ]; then
|
if [ "${updated}" = true ]; then
|
||||||
echo "updating nix"
|
echo "updating nix hashes"
|
||||||
cd "${git_root}"
|
cd "${git_root}"
|
||||||
nix-update --flake --version=skip --subpackage trevstack-client trevstack
|
nix-update --flake --version=skip --subpackage trevstack-client trevstack
|
||||||
git add flake.nix
|
git add flake.nix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user