ci: add the rest of the git steps
This commit is contained in:
parent
49d8fe230e
commit
31ad62652f
4
ci
4
ci
@ -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
|
||||
|
12
common.sh
12
common.sh
@ -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!"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user