1
0
Fork 0

Create version-bump branch

This commit is contained in:
Malte Brandy 2019-08-18 11:18:51 +02:00
parent a821b67c89
commit 416af8e562
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
2 changed files with 5 additions and 4 deletions

View file

@ -82,5 +82,4 @@ in {
ip6address = "fd23:42:cda:4342::2";
ip4address = "172.20.71.2";
};
}

View file

@ -59,13 +59,15 @@ in rec {
haskellList keys
}
when bump $ ignoreFailure $ niv "update"
mapM_ (test_system_config dir) ${haskellList systems}
mapM_ (test_home_config dir) ${haskellList homes}
changed <- (mempty /=) <$> (git "-C" dir "status" "--porcelain" |> captureTrim)
when changed $ do
git "-C" dir "config" "user.email" "maralorn@maralorn.de"
git "-C" dir "config" "user.name" "maralorn (nix-auto-updater)"
git "-C" dir "commit" "-am" "Update dependencies with niv"
git "-C" dir "push"
git "-C" dir "push" "-f" "origin" "master:version-bump"
mapM_ (test_system_config dir) ${haskellList systems}
mapM_ (test_home_config dir) ${haskellList homes}
when changed $ do
git "-C" dir "push" "origin" "master:master"
'';
}