Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Pilot Lvl 2
Message 1 of 2

Colorizing warnings/errors breaks ::group

 group-bug:
  runs-on: windows-latest
  steps:

  - run:   |
           :
           echo ---
           echo Warning single
           echo Error single
           echo [Warning] single
           echo [Error] single
           echo ---
           echo ::group::Warning grouped
           echo grouped
           echo warnings
           echo ::endgroup::
           echo ---
           echo ::group::Error grouped
           echo grouped
           echo errors
           echo ::endgroup::
           echo ---
           echo ::group::[Warning] grouped
           echo grouped
           echo warnings
           echo ::endgroup::
           echo ---
           echo ::group::[Error] grouped
           echo grouped
           echo errors
           echo ::endgroup::
           echo ---
    shell: bash

 

 

1 Reply
GitHub Partner
Message 2 of 2

Re: Colorizing warnings/errors breaks ::group

Command “echo ::group::[Warning] grouped” should be not supported.

echo "::group::my title"  
echo "::endgroup::"

This should be wrapped by the core methods which comes from ‘actions/toolkit’ , it requires a string value and but not support nested warpped “[Warning] title”.

code as below:

function startGroup(name: string): void {}
function endGroup(): void {}

 

Please refer to official doc for more details: 

https://github.com/actions/toolkit/blob/master/docs/commands.md#group-and-ungroup-log-lines