/ update-push.nix
update-push.nix
 1  {
 2    lib,
 3    radicle-update,
 4    update,
 5    writers,
 6  }:
 7  
 8  writers.writeNuBin "update-push" # nu
 9    ''
10      source ${radicle-update.lib.updaters.nix-flake}
11  
12      ${lib.getExe update}
13      git add .
14      if (git diff -s --exit-code --staged | complete | $in.exit_code == 1) {
15        git commit -m "update"
16      }
17  
18      rad update nix-flake
19  
20      git push rad
21    ''