Skip to content

Commit

Permalink
[ci] Make sure GH log group/endgroup end up on separate lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel-Naumann committed Sep 6, 2023
1 parent 3bf30c8 commit dba14a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/root-ci-config/build_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ def github_log_group(title: str):
def group(func: Callable):
@wraps(func)
def wrapper(*args, **kwargs):
print("::group::" + title)
print(f"\n::group::{title}\n")

try:
result = func(*args, **kwargs)
except Exception as exc:
print("::endgroup::")
print("\n::endgroup::\n")
raise exc

print("::endgroup::")
print("\n::endgroup::\n")

return result

Expand Down

0 comments on commit dba14a6

Please sign in to comment.