ci: run ci-run from initial setup

This commit is contained in:
Aaron Bieber 2023-01-29 10:04:48 -07:00
parent b76f06f48c
commit 15bbe1ed3b
No known key found for this signature in database

6
ci
View File

@ -9,7 +9,7 @@ set -eux
NAME="CI"
if ! tmux ls | grep -q "^${NAME}:"; then
tmux -2 new-session -d -s ${NAME}
tmux -2 new-session -d -s ${NAME} "./ci run"
fi
tmux -2 attach-session -t $NAME
@ -32,8 +32,4 @@ if [ "$CMD" = "run" ]; then
git checkout -b "${ci_branch}" || handle_co_fail
nix flake update --commit-lock-file || handle_update_fail
nix flake check || handle_check_fail
else
echo 'running "./ci run"'
tmux select-window -t "${NAME}:0"
tmux send-keys -t "${NAME}:0" "./ci run" ENTER
fi