MCPcopy
hub / github.com/ampproject/amphtml / env

Function env

build-system/common/ci.js:16–18  ·  view source on GitHub ↗

* Shorthand to extract an environment variable. * @param {string} key * @return {string}

(key)

Source from the content-addressed store, hash-verified

14 * @return {string}
15 */
16function env(key) {
17 return process.env[key] ?? '';
18}
19
20/**
21 * Returns true if this is a CI build.

Callers 15

isCiBuildFunction · 0.70
isGithubActionsBuildFunction · 0.70
isCircleciBuildFunction · 0.70
isPullRequestBuildFunction · 0.70
isPushBuildFunction · 0.70
ciPullRequestBranchFunction · 0.70
ciPullRequestShaFunction · 0.70
ciPushBranchFunction · 0.70
ciCommitShaFunction · 0.70
ciBuildIdFunction · 0.70
ciBuildUrlFunction · 0.70
ciJobIdFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected