ci: call ci from ci

This commit is contained in:
Aaron Bieber 2023-01-29 08:52:54 -07:00
parent 7db02cd705
commit 8094529d53
No known key found for this signature in database

4
ci
View File

@ -13,10 +13,11 @@ else
tmux -2 new-session -d ${SESS} tmux -2 new-session -d ${SESS}
fi fi
tmux -2 attach-session -t "$NAME" tmux -2 attach-session -t "$NAME" "./ci run"
trap ci_error INT TERM trap ci_error INT TERM
if [ "$1" = "run" ]; then
ci_branch=$(date +"%Y%m%dT%H%M%S%z") ci_branch=$(date +"%Y%m%dT%H%M%S%z")
can_sign=0 can_sign=0
@ -32,3 +33,4 @@ fi
git checkout -b "${ci_branch}" || handle_co_fail git checkout -b "${ci_branch}" || handle_co_fail
nix flake update --commit-lock-file || handle_update_fail nix flake update --commit-lock-file || handle_update_fail
nix flake check || handle_check_fail nix flake check || handle_check_fail
fi