Skip to content

Commit 968c108

Browse files
committed
fix: enable detecting colors on GitHub Actions
This is related to Termenv disabling colors on environments that define the CI environment variable. Fixes: #91
1 parent 49851a6 commit 968c108

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

dist/index.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ async function run(): Promise<void> {
1818
await deps.install()
1919
const bin = await intaller.install(version)
2020

21+
// Unset the CI variable to prevent Termenv from ignoring terminal ANSI
22+
// sequences.
23+
core.exportVariable('CI', '')
24+
2125
core.info('Adding VHS to PATH')
2226
core.addPath(path.dirname(bin))
2327

0 commit comments

Comments
 (0)