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

Function isPushBuild

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

* Returns true if this is a push build. * @return {boolean}

()

Source from the content-addressed store, hash-verified

75 * @return {boolean}
76 */
77function isPushBuild() {
78 return isGithubActions
79 ? env('GITHUB_EVENT_NAME') === 'push'
80 : isCircleci
81 ? isCircleciPushBranch(env('CIRCLE_BRANCH'))
82 : false;
83}
84
85/**
86 * Returns the name of the PR branch.

Callers 1

storeBundleSizeFunction · 0.85

Calls 2

isCircleciPushBranchFunction · 0.85
envFunction · 0.70

Tested by

no test coverage detected