use colorful mode by default

This commit is contained in:
Tim Ruffles
2019-12-19 17:27:36 +00:00
parent 2349eb5872
commit 891bb0ddc2
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -6,4 +6,6 @@ COPY . /opt/humans.txt
RUN npm i --production
ENV FORCE_COLOR=3
ENTRYPOINT ["bash", "/opt/humans.txt/run.sh"]
+1 -1
View File
@@ -13,7 +13,7 @@ const formatters = {
main()
function main() {
const format = process.argv[2] || (process.stdout.isTTY ? "shell" : "txt")
const format = process.argv[2] || ((process.env.GITHUB_ACTION || process.stdout.isTTY) ? "shell" : "txt")
const formatter = formatters[format]
if (!formatter) {