parent
5227e82c15
commit
d18476da73
16 changed files with 1 additions and 1 deletions
|
@ -1,26 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
pkgs.writeShellApplication {
|
||||
name = "dev-commit";
|
||||
|
||||
runtimeInputs = with pkgs; [
|
||||
coreutils
|
||||
git
|
||||
openssh
|
||||
];
|
||||
|
||||
text = ''
|
||||
IFS=':' read -ra repos <<< "$DEV_COMMIT_PATHS"
|
||||
|
||||
for repo in "''${repos[@]}"; do
|
||||
echo "Processing $repo"
|
||||
pushd "$repo"
|
||||
|
||||
git add .
|
||||
git commit -m "Automated dev commit" || true
|
||||
git push
|
||||
|
||||
popd
|
||||
done
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue