ci: switch back to printing output to stderr

This commit is contained in:
Aaron Bieber 2024-05-20 06:56:47 -06:00
parent 6893c30c60
commit ac6b7a8b7b
No known key found for this signature in database
2 changed files with 7 additions and 7 deletions

12
bin/ci
View File

@ -64,8 +64,8 @@ if [ "${1}" = "update" ]; then
maybe_new_hash="$(git rev-parse HEAD)" maybe_new_hash="$(git rev-parse HEAD)"
if [ "${current_hash}" != "${maybe_new_hash}" ]; then if [ "${current_hash}" != "${maybe_new_hash}" ]; then
if ! nix flake check --print-build-logs 2>/tmp/ci-flake-check-${inp}; then if ! nix flake check --print-build-logs; then
handle_update_check_fail "$inp" /tmp/ci-flake-check-${inp} handle_update_check_fail "$inp"
continue continue
fi fi
else else
@ -83,8 +83,8 @@ if [ "${1}" = "update" ]; then
fi fi
done done
if ! nix flake check --print-build-logs 2>/tmp/ci-flake-check; then if ! nix flake check --print-build-logs; then
handle_update_check_fail "$ci_branch" /tmp/ci-flake-check handle_update_check_fail "$ci_branch"
exit 1 exit 1
fi fi
@ -106,8 +106,8 @@ if [ "${1}" = "update" ]; then
exit 1 exit 1
fi fi
else else
if ! nix flake check --print-build-logs 2>/tmp/ci-flake-check; then if ! nix flake check --print-build-logs; then
handle_check_fail /tmp/ci-flake-check handle_check_fail
exit 1 exit 1
fi fi
fi fi

View File

@ -138,7 +138,7 @@ handle_update_fail() {
} }
handle_check_fail() { handle_check_fail() {
po_error "CI: checks failed!" "$(tail -n 30 $1)" po_error "CI: checks failed!" "$(get_journal xin-ci)"
} }
handle_update_check_fail() { handle_update_check_fail() {