File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,21 +56,24 @@ if [[ "$GITLAB_CI" = "true" ]] && [[ "$CI_DISPOSABLE_ENVIRONMENT" = "true" ]];
5656fi
5757
5858
59+ GROUP_NEST_LEVEL=0
5960begin_output_group ()
6061{
61- if [[ $GITHUB_ACTIONS == " true" ]]; then
62+ if [[ $GITHUB_ACTIONS == " true" ]] && [[ $GROUP_NEST_LEVEL == 0 ]] ; then
6263 echo " ::group::$1 "
6364 else
6465 echo " --------------------------------------------------------------"
6566 echo " BEGIN $1 "
6667 echo " --------------------------------------------------------------"
6768 fi
69+ GROUP_NEST_LEVEL=$(( GROUP_NEST_LEVEL + 1 ))
6870}
6971
7072
7173end_output_group ()
7274{
73- if [[ $GITHUB_ACTIONS == " true" ]]; then
75+ GROUP_NEST_LEVEL=$(( GROUP_NEST_LEVEL - 1 ))
76+ if [[ $GITHUB_ACTIONS == " true" ]] && [[ $GROUP_NEST_LEVEL == 0 ]]; then
7477 echo " ::endgroup::$1 "
7578 else
7679 echo " --------------------------------------------------------------"
You can’t perform that action at this time.
0 commit comments