Skip to content

Commit c021b0a

Browse files
author
Matthias Koeppe
committed
build/bin/sage-logger [GITHUB_ACTIONS]: Put ::group::, ::endgroup:: in the 'sed' subshell
1 parent 29984a4 commit c021b0a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

build/bin/sage-logger

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,13 @@ else
9090
# We trap SIGINT such that SIGINT interrupts the main process being
9191
# run, not the logging.
9292

93-
if [ -n "$$(GITHUB_ACTIONS)" ]; then echo "::group::${logname}"; fi
93+
9494

9595
( exec 2>&1; eval "$cmd" ) | \
96-
( trap '' SIGINT; tee -a "$logfile" | $SED )
96+
( trap '' SIGINT; if [ -n "$$(GITHUB_ACTIONS)" ]; then echo "::group::${logname}"; fi; tee -a "$logfile" | $SED; if [ -n "$$(GITHUB_ACTIONS)" ]; then echo "::endgroup::"; fi )
9797

9898
pipestatus=(${PIPESTATUS[*]})
9999

100-
if [ -n "$$(GITHUB_ACTIONS)" ]; then echo "::endgroup::"; fi
101-
102100
if [ ${pipestatus[1]} -ne 0 ]; then
103101
exit ${pipestatus[1]}
104102
else

0 commit comments

Comments
 (0)