Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does github actions environment variable "CI" stands for?

I tried to find meaning of CI inside Github Actions documentation, but I can not find detailed explanation.

Except this

CI  Always set to true.
like image 333
Karl Xu Avatar asked Jul 25 '26 04:07

Karl Xu


2 Answers

it's the environment variable defined by convention in many CI servers like github action, Gitlab, Travis etc. Its value is always set to true when builds run in those servers.

Many tools check whether that variable is set to true and adjust their configuration and output to be suitable for CI environment. E.g. some tools are interactive by default, but if CI=true, it will skip user prompt and use default values/passed in arguments. Another example is pipenv that has special configuration when CI=true: https://github.com/pypa/pipenv/blob/207f2f565d2c4493bd8cdfb55a9b565aa58984fc/pipenv/environments.py#L27

like image 198
Phuong Nguyen Avatar answered Jul 26 '26 18:07

Phuong Nguyen


The abbreviation CI in this context stands for Continuous Integration

like image 43
sagstetterC Avatar answered Jul 26 '26 19:07

sagstetterC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!