Skip to content

Commit e3992ab

Browse files
GatsbyJS Botjamo
GatsbyJS Bot
andauthored
chore(telemetry) improve github action and circle detection (#28732) (#28747)
* chore(telemetry) improve github action and circle detection * Change order * Make sure tests work in circle (cherry picked from commit 3af7182) Co-authored-by: Jarmo Isotalo <[email protected]>
1 parent 6919703 commit e3992ab

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/gatsby-core-utils/src/__tests__/ci.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ describe(`CI detection`, () => {
99
;[
1010
`CI`,
1111
`CIRCLECI`,
12+
`CIRCLE_BRANCH`,
1213
`CIRCLE_PULL_REQUEST`,
1314
`SYSTEM_TEAMFOUNDATIONCOLLECTIONURI`,
1415
`SYSTEM_PULLREQUEST_PULLREQUESTID`,

packages/gatsby-core-utils/src/ci.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import ci from "ci-info"
22

33
const CI_DEFINITIONS = [
4-
envFromCIAndCIName,
54
getEnvDetect({ key: `NOW_BUILDER_ANNOTATE`, name: `ZEIT Now` }),
65
getEnvDetect({ key: `NOW_REGION`, name: `ZEIT Now v1` }),
76
getEnvDetect({ key: `VERCEL_URL`, name: `Vercel Now` }),
87
getEnvDetect({ key: `NOW_BUILDER`, name: `Vercel Now` }),
98
getEnvDetect({ key: `VERCEL_BUILDER`, name: `Vercel Now` }),
109
getEnvDetect({ key: `CODESANDBOX_SSE`, name: `CodeSandbox` }),
10+
getEnvDetect({ key: `GITHUB_ACTIONS`, name: `GitHub Actions` }),
11+
getEnvDetect({ key: `CIRCLE_BRANCH`, name: `CircleCI` }),
12+
getEnvDetect({ key: `CIRCLECI`, name: `CircleCI` }),
13+
envFromCIAndCIName,
1114
herokuDetect,
1215
getEnvFromCIInfo,
1316
envFromCIWithNoName,

0 commit comments

Comments
 (0)