Skip to content

Has github action somthing like travis_fold? #25618

Answered by wipe2238
prisis asked this question in Actions
Discussion options

You must be logged in to vote

There is ::group “command” which allows to hide boring parts of scripts. Can’t remember where i found this; it’s not in docs, so either it was used by someone else in their workflow, or inside ‘actions/toolkit’ repo.

Anyway.

- run: |
       echo Important stuff
       echo ::group::Boring stuff
       echo very
       echo boring
       echo stuff
       echo ::endgroup::
       echo Exciting stuff

will become

Important stuff
▶ Boring stuff
Exciting stuff

when checking workflow run under Actions tab, with “Boring stuff” clickable to expand group.

There are two minor issues with ::group i know of:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants