ci: add the rest of the git steps

This commit is contained in:
Aaron Bieber 2023-01-31 16:28:08 -07:00
parent 49d8fe230e
commit 31ad62652f
No known key found for this signature in database
2 changed files with 16 additions and 0 deletions

4
ci
View File

@ -22,6 +22,10 @@ if [ $can_sign != 1 ]; then
exit 1
fi
git pull || handle_pull_fail
git checkout -b "${ci_branch}" || handle_co_fail
nix flake update --commit-lock-file || handle_update_fail
nix flake check || handle_check_fail
git checkout main || handle_co_fail
git merge "${ci_branch}" || handle_merge_fail
git push || handle_push_fail

View File

@ -82,6 +82,10 @@ finish() {
exit 0
}
handle_pull_fail() {
po_error "CI: git pull failed!" "Pelase help!"
}
handle_co_fail() {
po_error "CI: git checkout failed!" "Pelase help!"
}
@ -93,3 +97,11 @@ handle_update_fail() {
handle_check_fail() {
po_error "CI: flake checks failed!" "Pelase help!"
}
handle_merge_fail() {
po_error "CI: git merge failed!" "Pelase help!"
}
handle_push_fail() {
po_error "CI: git push failed!" "Pelase help!"
}