Compare commits
1 commit
inside-ci_
...
master
Author | SHA1 | Date | |
---|---|---|---|
95f00d8700 |
1 changed files with 7 additions and 4 deletions
11
README.md
11
README.md
|
@ -10,14 +10,17 @@ Returns true if inside CI. Otherwise returns false.
|
||||||
|
|
||||||
# CLI
|
# CLI
|
||||||
|
|
||||||
`inside-ci`
|
## `inside-ci` or `in-ci`
|
||||||
|
|
||||||
Returns code 0 if inside CI. Otherwise returns an error code of 1.
|
Returns code 0 if inside CI. Otherwise returns an error code of 1.
|
||||||
|
|
||||||
`inside-ci || echo 'We are not inside CI, install some stuff'`
|
* `inside-ci || echo 'We are not inside CI, install some stuff'`
|
||||||
|
* `in-ci && echo 'We are inside CI, install some stuff'`
|
||||||
`inside-ci && echo 'We are inside CI, install some stuff'`
|
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
`is-ci || husky install`
|
`is-ci || husky install`
|
||||||
|
|
||||||
|
## `not-ci`
|
||||||
|
|
||||||
|
Inverse of the above command
|
||||||
|
|
Loading…
Reference in a new issue