ci: commit niv updates to main branch

This commit is contained in:
arcnmx 2021-05-19 11:31:08 -07:00
parent 841f253434
commit 8fe1a913a5

View file

@ -82,10 +82,11 @@ with lib; {
git add nix/sources.json
export GIT_{COMMITTER,AUTHOR}_EMAIL=kat@kittywit.ch
export GIT_{COMMITTER,AUTHOR}_NAME=kat witch
git commit --message="ci-trusted: niv update"
git remote add gitea ssh://gitea@git.kittywit.ch:62954/kat/nixfiles.git
git commit --message="ci: niv update"
if [[ $GITHUB_REF = refs/heads/main ]]; then
GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" \
git push gitea master
git push ssh://gitea@git.kittywit.ch:62954/kat/nixfiles.git main
fi
fi
wait ''${CACHIX_PUSH-}