cachix / install-nix-action

Installs Nix on GitHub Actions for the supported platforms: Linux and macOS.
Apache License 2.0
513 stars 79 forks source link

install-nix.sh: Collapse log messages #139

Closed sigprof closed 2 years ago

sigprof commented 2 years ago

The Nix installer produces a significant number of log messages, but usually those messages are not really interesting. Group those messages under a header, so that GitHub will keep them collapsed by default.

Usually log messages are collapsed under the step title anyway, but if this action is uses inside another composite action, there is no separate step title, therefore the whole Nix installer output is immediately visible when the log section for the outer composite action is expanded. Adding the group header fixes this problem.

This should also help with complaints like #126.


An example of how the log output looks when cachix/install-nix-action is used inside a composite action (expand the “Build” step):

(sorry, that's a very dirty testing repo).