ci: send stderr to handle_check_fail

This commit is contained in:
Aaron Bieber 2024-05-06 09:00:23 -06:00
parent 16d3e2dbdc
commit 5ff49f6eee
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

4
bin/ci
View File

@ -106,8 +106,8 @@ if [ "${1}" = "update" ]; then
exit 1 exit 1
fi fi
else else
if ! nix flake check --print-build-logs; then if ! nix flake check --print-build-logs 2>/tmp/ci-flake-check; then
handle_check_fail handle_check_fail /tmp/ci-flake-check
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!" "$(get_journal xin-ci)" po_error "CI: checks failed!" "$(tail -n 30 $1)"
} }
handle_update_check_fail() { handle_update_check_fail() {