Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizing target log | GitHub Actions output #9

Open
KSXGitHub opened this issue May 15, 2020 · 1 comment · May be fixed by #16
Open

Customizing target log | GitHub Actions output #9

KSXGitHub opened this issue May 15, 2020 · 1 comment · May be fixed by #16

Comments

@KSXGitHub
Copy link

Drake always logs target names before executing the targets. It would be cool if those targets is collapsible/expandible in GitHub Actions, like so:

target 1 target 1 logs
target 2 target 2 logs

This can be achieved by printing the following to stdout:

::group::target 1
target 1 logs
::endgroup::
::group::target 2
target 2 logs
::endgroup::

Request

Add a way to customize logging of target names.

@srackham
Copy link
Owner

srackham commented Nov 9, 2020

You could filter the output e.g. using sed(1):

NO_COLOR=yes drake test | sed -r 's/^(.*): started$/::group::\1/; s/^(.*): finished.*$/::endgroup::/'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants