nightroman / Invoke-Build

Build Automation in PowerShell

Home Page:https://github.com/nightroman/Invoke-Build/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub action output is not colored

nightroman opened this issue · comments

Starting from PS Core 7.2.6 GitHub action output is not colored because IB uses ANSI when $PSStyle.OutputRendering -eq 'Ansi' and PS Core 7.2.6 changed the default to 'Host'.

Let's change the condition to $PSStyle.OutputRendering -ne 'PlainText'.