Skip to content

Commit

Permalink
Merge pull request #139 from sigprof/collapse-log-output
Browse files Browse the repository at this point in the history
install-nix.sh: Collapse log messages
  • Loading branch information
domenkozar committed Jul 13, 2022
2 parents 451e611 + 6c5ba55 commit 92d3622
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install-nix.sh
Expand Up @@ -6,6 +6,9 @@ if type -p nix &>/dev/null ; then
exit
fi

# GitHub command to put the following log messages into a group which is collapsed by default
echo "::group::Installing Nix"

# Create a temporary workdir
workdir=$(mktemp -d)
trap 'rm -rf "$workdir"' EXIT
Expand Down Expand Up @@ -84,3 +87,6 @@ echo "/nix/var/nix/profiles/per-user/$USER/profile/bin" >> "$GITHUB_PATH"
if [[ $INPUT_NIX_PATH != "" ]]; then
echo "NIX_PATH=${INPUT_NIX_PATH}" >> "$GITHUB_ENV"
fi

# Close the log message group which was opened above
echo "::endgroup::"

0 comments on commit 92d3622

Please sign in to comment.