From 79d13032e2aa7a011f1c8badc866bcf4bc500f7a Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Fri, 27 Sep 2019 00:02:33 -0400 Subject: [PATCH] Support GitHub Actions (#102) --- index.js | 4 ++++ 1 file changed, 4 insertions(+) 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; }