Fix output on non GitHub Action environments

This commit is contained in:
Shivam Mathur
2022-01-30 10:00:11 +05:30
parent 5acd006232
commit 9d74a11420
14 changed files with 70 additions and 25 deletions

View File

@ -22,7 +22,7 @@ add_protoc() {
sudo chmod -R 777 /usr/local/bin/protoc /usr/local/include/google
) >/dev/null 2>&1
add_log "${tick:?}" "protoc" "Added protoc ${protobuf_tag:1}"
printf "::group::\033[34;1m%s \033[0m\033[90;1m%s \033[0m\n" "protoc" "Click to read the protoc related license information"
printf "$GROUP\033[34;1m%s \033[0m\033[90;1m%s \033[0m\n" "protoc" "Click to read the protoc related license information"
curl "${curl_opts[@]:?}" https://raw.githubusercontent.com/protocolbuffers/protobuf/master/LICENSE
echo "::endgroup::"
echo "$END_GROUP"
}