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

@ -32,7 +32,7 @@ Function Add-Protoc() {
Move-Item -Path $bin_dir\protoc\bin\protoc.exe -Destination $bin_dir\protoc.exe
Add-ToProfile $current_profile 'protoc' "New-Alias protoc $bin_dir\protoc.exe"
Add-Log $tick "protoc" "Added protoc $($protobuf_tag -replace 'v', '')"
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 "$env:GROUP\033[34;1m%s \033[0m\033[90;1m%s \033[0m\n" "protoc" "Click to read the protoc related license information"
Write-Output (Invoke-WebRequest https://raw.githubusercontent.com/protocolbuffers/protobuf/master/LICENSE).Content
Write-Output "::endgroup::"
Write-Output "$env:END_GROUP"
}