diff --git a/index.js b/index.js index ad4ca00..dcaa454 100644 --- a/index.js +++ b/index.js @@ -92,6 +92,10 @@ function supportsColor(haveStream, streamIsTTY) { return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; } + if ('GITHUB_ACTIONS' in env) { + return 1; + } + if (env.COLORTERM === 'truecolor') { return 3; }