Skip to content

Commit

Permalink
fix: enable detecting colors on GitHub Actions
Browse files Browse the repository at this point in the history
This is related to Termenv disabling colors on environments that define
the CI environment variable.

Fixes: #91
  • Loading branch information
aymanbagabas committed Apr 25, 2023
1 parent 49851a6 commit 968c108
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ async function run(): Promise<void> {
await deps.install()
const bin = await intaller.install(version)

// Unset the CI variable to prevent Termenv from ignoring terminal ANSI
// sequences.
core.exportVariable('CI', '')

core.info('Adding VHS to PATH')
core.addPath(path.dirname(bin))

Expand Down

0 comments on commit 968c108

Please sign in to comment.