Skip to content

Commit

Permalink
chore: PR feedback
Browse files Browse the repository at this point in the history
Use ci-info package here instead!

Feedback: #446 (comment)
Co-Authored-By: Jon Ursenbach <[email protected]>
  • Loading branch information
kanadgupta and erunion committed Feb 24, 2022
1 parent 4d31fcc commit 1d2fad0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 3 additions & 4 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"dependencies": {
"@actions/core": "^1.6.0",
"chalk": "^4.1.2",
"ci-info": "^3.3.0",
"cli-table": "^0.3.1",
"command-line-args": "^5.2.0",
"command-line-usage": "^6.0.2",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/isGitHub.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
* @link https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
*/
module.exports = function isGHA() {
return process.env.GITHUB_ACTIONS === 'true';
// eslint-disable-next-line global-require
return require('ci-info').GITHUB_ACTIONS;
};

0 comments on commit 1d2fad0

Please sign in to comment.