1
0

pkgs/nixfiles: nixfiles-updated-inputs push update branch

This commit is contained in:
clerie 2024-02-18 18:49:29 +01:00
parent 9050a99666
commit 704aba254d

View File

@ -24,9 +24,12 @@ echo "[!] Update nixpkgs"
nix flake lock --update-input nixpkgs nix flake lock --update-input nixpkgs
echo "[!] Commit changes" echo "[!] Commit changes"
git add flake.lock xgit add flake.lock
xgit commit -m "Update nixpkgs ${NOW}" || true xgit commit -m "Update nixpkgs ${NOW}" || true
echo "[!] Publish ${UPDATE_BRANCH}"
xgit push --set-upstream origin "${UPDATE_BRANCH}"
echo "[!] Merge ${UPDATE_BRANCH} into updated-inputs" echo "[!] Merge ${UPDATE_BRANCH} into updated-inputs"
xgit checkout updated-inputs xgit checkout updated-inputs
xgit merge -s ort -X theirs "${UPDATE_BRANCH}" -m "Update from ${UPDATE_BRANCH}" xgit merge -s ort -X theirs "${UPDATE_BRANCH}" -m "Update from ${UPDATE_BRANCH}"