Compare commits
2 commits
28b14a9ce3
...
184a8a72aa
Author | SHA1 | Date | |
---|---|---|---|
Aires | 184a8a72aa | ||
Aires | 7faea4abd5 |
|
@ -84,10 +84,8 @@ in
|
||||||
cd ${config.secrets.nixConfigFolder}
|
cd ${config.secrets.nixConfigFolder}
|
||||||
# Make sure we're up-to-date
|
# Make sure we're up-to-date
|
||||||
git pull --recurse-submodules
|
git pull --recurse-submodules
|
||||||
nix flake update
|
nix flake update --commit-lock-file
|
||||||
git add flake.lock
|
git push
|
||||||
# Only commit and push if the lock file has changed, otherwise quietly exit
|
|
||||||
git diff --quiet && git diff --staged --quiet || git commit -am "Update flake.lock" && git push
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue